Skip to main content
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-docs-agent-gateway-docs.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-portkey-api-key
string
header
required

Path Parameters

workspaceId
string
required

Response

200

OK

Last modified on May 14, 2026