API Reference
Virtual Keys
Prompts
- POSTCreate Prompt
- GETList Prompts
- GETRetrieve Prompt
- PUTUpdate Prompt
- DELDelete Prompt
- PUTPublish Prompt
- GETList Prompt Versions
- GETRetrieve Prompt Version
- PUTUpdate Prompt Version
- Prompt Partials
- Prompt Labels
- Prompt Collections
API Keys
Analytics [BETA]
- Summary
- Groups Paginated Data
- Graphs - Time Series Data
User Invites
Workspaces
Workspace Members
Audit Logs
OpenAPI
Remove a user
DELETE
/
admin
/
users
/
{userId}
Copy
Ask AI
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)
Copy
Ask AI
{}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Response
200 - application/json
OK
The response is of type object
.
Was this page helpful?
Copy
Ask AI
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)
Copy
Ask AI
{}
Assistant
Responses are generated using AI and may contain mistakes.