cURL
curl --request DELETE \ --url https://www.getsnippets.ai/api/prompts/folder \ --header 'Authorization: Bearer <token>'
200
Example
{ "success": true, "data": { "message": "<string>" }, "usage": { "remainingRequests": 123 }, "metadata": { "deletedFolderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "snippetsOrphaned": 123 }}
Deletes a folder. Contained snippets are orphaned (folder_id set to null). API Cost: 1 request.
API key authentication using Bearer token. Include your API key in the Authorization header.
The ID of the folder to delete
Folder deleted successfully
true
Show child attributes