from portkey_ai import Portkey
# Initialize the Portkey client
portkey = Portkey(
api_key="PORTKEY_API_KEY",
)
# Delete workspace
result = portkey.admin.workspaces.delete(
workspace_id='WORKSPACE_SLUG'
)
print(result)Delete a Workspace
DELETE
/
admin
/
workspaces
/
{workspaceId}
from portkey_ai import Portkey
# Initialize the Portkey client
portkey = Portkey(
api_key="PORTKEY_API_KEY",
)
# Delete workspace
result = portkey.admin.workspaces.delete(
workspace_id='WORKSPACE_SLUG'
)
print(result)Documentation Index
Fetch the complete documentation index at: https://portkey-docs-guide-prompt-api.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Last modified on April 8, 2026
Was this page helpful?
⌘I

