Skip to content
Get started

Remove a user from a customer

express.users.remove(strexpress_customer_id, UserRemoveParams**kwargs) -> UserRemoveResponse
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
express_customer_id: str

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

user_id: str

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

ReturnsExpand Collapse
class UserRemoveResponse:

Standard success response with optional message

success: bool
message: Optional[str]

Remove a user from a customer

import os
from avara import Avara

client = Avara(
    api_key=os.environ.get("AVARA_API_KEY"),  # This is the default and can be omitted
)
user = client.express.users.remove(
    express_customer_id="cus_1234567890abcdef1234567890abcdef",
    user_id="usr_1234567890abcdef1234567890abcdef",
)
print(user.success)
{
  "success": true,
  "message": "Operation completed successfully"
}
Returns Examples
{
  "success": true,
  "message": "Operation completed successfully"
}