from portkey_ai import Portkey
# Initialize the Portkey client
portkey = Portkey(
api_key="PORTKEY_API_KEY",
)
# Delete a user
user = portkey.admin.users.delete(
user_id='USER_ID'
)
print(user){}Remove a user
DELETE
/
admin
/
users
/
{userId}
from portkey_ai import Portkey
# Initialize the Portkey client
portkey = Portkey(
api_key="PORTKEY_API_KEY",
)
# Delete a user
user = portkey.admin.users.delete(
user_id='USER_ID'
)
print(user){}Documentation Index
Fetch the complete documentation index at: https://portkey-docs-mintlify-gemini-context-caching-1774427736.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Last modified on March 25, 2026
Was this page helpful?
⌘I

