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
Delete a Workspace
DELETE
/
admin
/
workspaces
/
{workspaceId}
Copy
Ask AI
from portkey_ai import Portkey
# Initialize the Portkey client
portkey = Portkey()
# Delete workspace
result = portkey.admin.workspaces.delete(
workspace_id='WORKSPACE_SLUG'
)
print(result)
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Response
200
OK
Was this page helpful?
Copy
Ask AI
from portkey_ai import Portkey
# Initialize the Portkey client
portkey = Portkey()
# Delete workspace
result = portkey.admin.workspaces.delete(
workspace_id='WORKSPACE_SLUG'
)
print(result)
Assistant
Responses are generated using AI and may contain mistakes.