Bulk Delete Social Planner Posts
POST/social-media-posting/:locationId/posts/bulk-delete
Deletes multiple posts based on the provided list of post IDs. This operation is useful for clearing up large numbers of posts efficiently.
Note:
1.The maximum number of posts that can be deleted in a single request is '50'.
2.However, It will only get deleted in the platform database but still it is recommended to be cautious of this operation.
Request
Version stringrequired
API Version
Available options
v3locationId stringrequired
Location ID (also known as Sub-Account ID) for the business location.
- application/json
- Body
- Example (auto)
Bodyrequired
postIdsstring[]
Post identifiers to delete. Each is either a 24-char post id or a 40-char native post id.
{
"postIds": [
"662791ee3f216822d7da0c8c"
]
}
Posts deleted successfully
- application/json
- Schema
- Example (auto)
Schema
successbooleanrequired
Success or Failure
statusCodenumberrequired
Status Code
messagestringrequired
Message
resultsobjectrequired
Message and deleted count
{
"success": true,
"statusCode": 201,
"message": "Posts Deleted Successfully",
"results": {
"message": "Posts deleted successfully",
"deletedCount": 10
}
}