Delete a snippet
DELETE
/v1/snippets/{id}
const url = 'https://beta-api.plune.ai/v1/snippets/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://beta-api.plune.ai/v1/snippets/example \ --header 'Authorization: Bearer <token>'Gone for good — no bin: a snippet is an editor’s tool, not a record anyone reports against. The cases written from it are untouched.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Responses
Section titled “ Responses ”Deleted
No / invalid token or session
No such snippet in your projects
Media type application/json
object
error
required
string
Example generated
{ "error": "example"}Rate-limited: either the per-route throttle or a tenant quota. Retry-After carries the seconds until the window rolls over.
Media type application/json
object
error
required
string
Example generated
{ "error": "example"}Headers
Section titled “Headers ” Retry-After
integer
Seconds until the window rolls over