import Courier from '@trycourier/courier';const client = new Courier({ apiKey: process.env['COURIER_API_KEY'], // This is the default and can be omitted});await client.users.tenants.removeSingle('tenant_id', { user_id: 'user_id' });
User Tenants
Remove User from a Tenant
Removes a user from the supplied tenant.
DELETE
/
users
/
{user_id}
/
tenants
/
{tenant_id}
JavaScript
Copy
Ask AI
import Courier from '@trycourier/courier';const client = new Courier({ apiKey: process.env['COURIER_API_KEY'], // This is the default and can be omitted});await client.users.tenants.removeSingle('tenant_id', { user_id: 'user_id' });