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.removeAll('user_id');
User Tenants
Remove User From All Associated Tenants
Removes a user from any tenants they may have been associated with.
DELETE
/
users
/
{user_id}
/
tenants
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.removeAll('user_id');