Skip to main content
DELETE
/
admin
/
workspaces
/
{workspaceId}
/
users
/
{userId}
from portkey_ai import Portkey # Initialize the Portkey client portkey = Portkey( api_key="PORTKEY_API_KEY", ) # Delete user from workspace result = portkey.admin.workspaces.users.delete( workspace_id='WORKSPACE_SLUG', user_id='USER_ID' ) # Print the result (if any) print(result)
{}

Authorizations

x-portkey-api-key
string
header
required

Path Parameters

workspaceId
string
required
userId
string
required

Response

200 - application/json

OK

The response is of type object.

Last modified on March 17, 2026