DELETE
/
admin
/
users
/
{userId}
from portkey_ai import Portkey

# Initialize the Portkey client
portkey = Portkey()

# Delete a user
user = portkey.admin.users.delete(
user_id='USER_ID'
)

print(user)
{}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

userId
string
required

Response

200 - application/json

OK

The response is of type object.