DELETE

Delete Draft Post


Moves a draft post to the trash bin. A published post can also be deleted by the post ID.

To permanently delete a post bypassing the trash bin, set the permanent field value to true. The post can't be restored after this.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Blog
Learn more about app permissions.
Endpoint
DELETE
https://www.wixapis.com/blog/v3/draft-posts/{draftPostId}

Path Params
draftPostIdstringRequired

Draft post ID.

Query Params
permanentboolean

Whether to bypass the trash bin and delete the post permanently.

Default: false

Response Object
Returns an empty object.
Delete Draft Post Example 1
Request
cURL
curl -X DELETE 'https://www.wixapis.com/blog/v3/draft-posts/0eed85df-8332-4d7b-9184-164a482f0b41' \ -H 'Content-Type: application/json' \ -H 'Authorization: <AUTH>'
Response
JSON
{}
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Event TriggersThis method triggers the following events:
Did this help?