Skip to content
Get started

Remove a user from a customer

UserRemoveResponse Express.Users.Remove(UserRemoveParamsparameters, CancellationTokencancellationToken = default)
DELETE/v1/express/{expressCustomerId}/users

Removes a user's association with a customer, revoking their access to customer-specific resources. The user account remains active but is no longer linked to this customer.

ParametersExpand Collapse
UserRemoveParams parameters
required string expressCustomerID

Unique Express customer identifier. Format: cus_{32-hex-chars}

required string userID

User ID to remove from the Express customer. Format: usr_{32-hex-chars}

ReturnsExpand Collapse
class UserRemoveResponse:

Standard success response with optional message

required Boolean Success
string Message

Remove a user from a customer

UserRemoveParams parameters = new()
{
    ExpressCustomerID = "cus_1234567890abcdef1234567890abcdef",
    UserID = "usr_1234567890abcdef1234567890abcdef",
};

var user = await client.Express.Users.Remove(parameters);

Console.WriteLine(user);
{
  "success": true,
  "message": "Operation completed successfully"
}
Returns Examples
{
  "success": true,
  "message": "Operation completed successfully"
}