Skip to main content
DELETE
Delete a prompt folder
Permanently deletes a prompt folder from your workspace. Prompts in the folder are deleted as well. This action cannot be undone.

Base URL

Dedicated deploymentsReplace api.langdock.com with <your-deployment-url>/api/public in all requests.

Required Scopes

This endpoint requires the PROMPT_API scope.
Private folders require creator access. Workspace-shared folders require workspace editor access. Group-shared folders require group editor access or workspace editor access.

Parameters

Example

Response Format

Success Response (200 OK)

Error Handling

Deleting a folder also deletes every prompt in that folder. This cannot be undone.
Langdock intentionally blocks browser-origin requests to protect your API key and ensure your applications remain secure. For more information, please see our guide on API Key Best Practices.

Authorizations

Authorization
string
header
required

API key as Bearer token. Format "Bearer YOUR_API_KEY"

Path Parameters

folderId
string<uuid>
required

UUID of the prompt folder.

Response

Prompt folder deleted successfully

success
boolean
required
Example:

true