Delete Template Folder
Delete a template folder from your workspace
Published
DELETE
/v1/studio/folders/{folderId}curl -X DELETE "https://api.orshot.com/v1/studio/folders/<FOLDER_ID>" \
-H "Authorization: Bearer <ORSHOT_API_KEY>"const res = await fetch("https://api.orshot.com/v1/studio/folders/<FOLDER_ID>", {
method: "DELETE",
headers: {
Authorization: "Bearer <ORSHOT_API_KEY>",
},
});
const data = await res.json();import requests
response = requests.delete(
"https://api.orshot.com/v1/studio/folders/<FOLDER_ID>",
headers={"Authorization": "Bearer <ORSHOT_API_KEY>"},
)
data = response.json()$ch = curl_init("https://api.orshot.com/v1/studio/folders/<FOLDER_ID>");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer <ORSHOT_API_KEY>",
]);
$data = json_decode(curl_exec($ch), true);
curl_close($ch);require "net/http"
require "json"
uri = URI("https://api.orshot.com/v1/studio/folders/<FOLDER_ID>")
req = Net::HTTP::Delete.new(uri)
req["Authorization"] = "Bearer <ORSHOT_API_KEY>"
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(req) }
data = JSON.parse(res.body)Overview#
Delete a template folder. The templates inside it are not deleted; they move back to "All templates".
https://api.orshot.com/v1/studio/folders/:folderIdPath Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
folderId | Integer | Yes | The unique ID of the folder |
Request#
await fetch("https://api.orshot.com/v1/studio/folders/11", {
method: "DELETE",
headers: {
Authorization: "Bearer <ORSHOT_API_KEY>",
},
});{
"success": true
}Error Responses#
Folder Not Found (404)#
{
"error": "Folder not found"
}Notes#
- Deleting a folder never deletes templates. Everything inside returns to "All templates".
Rate Limits#
- 30 requests per minute per API key
Was this page helpful?
Ready to automate?
Start rendering images, PDFs and videos from your templates in under 2 minutes. Free plan, no credit card.
Get your API key- Image, PDF and video generation via API
- Visual editor with AI and smart layouts
- Zapier, Make, MCP and 50+ integrations
- White-label embed for your own app
- 30 free credits — no credit card required