Delete post

Delete one of your posts, from the queue, drafts or the blog.

DELETE https://cotlet.dev/api/v1/tumblr/posts/{post_id}

write Confirm

Deletes one post of yours. A published post disappears from your blog and from followers' dashboards, and a deleted post cannot be brought back with this tool. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: delete_post
NameTypeDescription
blog string required string Blog name, e.g. 'studio-notes' for studio-notes.tumblr.com. Names come from list_blogs.
post_id string required string Post ID from list_posts, list_queue or list_drafts.

Request

cURL
curl -X DELETE "https://cotlet.dev/api/v1/tumblr/posts/post_8c41d2?blog=studio-notes" \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("tumblr", "delete_post", {"blog":"studio-notes","post_id":"post_8c41d2"})
Node.js
const result = await cotlet.call('tumblr', 'delete_post', {"blog":"studio-notes","post_id":"post_8c41d2"});
CLI
cotlet call tumblr delete_post --data '{"blog":"studio-notes","post_id":"post_8c41d2"}'

Example response

JSON

{
  "post_id": "771198400021",
  "status": "deleted"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.