deleteDraftPost( )
Moves a draft post with the provided ID to the trash bin.
A published post can also be deleted by its provided draftPostId
.
The optional permanent
field enables you to delete a post permanently, bypassing the trash bin. When a draft post is deleted this way, it can't be restored.
Permission Scopes
For app development, you must have one of the following permission scopes:Manage Blog
Learn more about permission scopes.
Method Declaration
Copy
Method Parameters
draftPostIdstringRequired
Draft post ID.
optionsDeleteDraftPostOptions
Options for deleting a draft post.
Was this helpful?
Yes
No