DELETE
https://api.slidesgpt.com/v1/presentations/{id}
curl -X DELETE "https://api.slidesgpt.com/v1/presentations/12345" \ -H "Authorization: Bearer YOUR_API_KEY"
async function deletePresentation(id) { try { const response = await fetch(`${API_BASE_URL}/presentations/${id}`, { method: "DELETE", headers: { Authorization: `Bearer ${token}` }, }); if (response.ok) console.log("Presentation deleted successfully."); else console.error("Failed to delete presentation."); } catch (err) { console.error(err); } }
Note: You must include your API key in the Authorization header. If you don’t have one, follow the steps in the Authentication Guide to get your API key.
Authorization