Delete Comments
Delete either a single comment or all comments under a post
The delete endpoint allows you to either delete comments sent via Ayrshare or comments that were sent outside of Ayrshare.
Please see the Comments Overview for more information on the different ID types.
Delete Comments Sent from Ayrshare
Delete either a single comment or all comments under a post that were sent via Ayrshare. Please see the Ayrshare Post ID and Ayrshare Comment ID for more information.
Supported platforms: Bluesky, Facebook, Instagram, LinkedIn, Reddit, TikTok, X/Twitter, and YouTube.
Delete Comments Sent Outside of Ayrshare
Delete a comment that was not sent via Ayrshare by using the commentId
returned for a particular social network.
This is the Social Comment ID from the social networks, not the Ayrshare ID.
Supported platforms: Facebook, Instagram, TikTok, X/Twitter, and YouTube.
For example, you get all the comments for a particular Instagram post using the Get Comments endpoint with the searchPlatformId
set to true
.
The returned JSON will have a commentId
for each comment, which you can use to delete the comment. Remember to set the searchPlatformId
to true
.
Header Parameters
Path Parameters
Delete a comments sent from Ayrshare:
- Delete all comments sent via Ayrshare by providing the Ayrshare Post ID.
- Delete a single comment by providing the Ayrshare Comment ID.
Delete a comment sent outside of Ayrshare:
Delete a single comment by providing the Social Comment ID from the social network.
- Must include the
searchPlatformId
set totrue
.
Body Parameters
Required if deleting comments sent via Ayrshare. The platforms to delete comments from.
Supported platforms: bluesky
, facebook
, instagram
, linkedin
, reddit
, tiktok
, twitter
, youtube
.
Required if deleting using the Social Comment
ID, which is the commentId
from the
social networks.
Supported platforms: bluesky
, facebook
, instagram
, tiktok
, twitter
, youtube
. Only one platform is supported at a time.
Required if deleting using the Social Comment
ID, which is the commentId
from the
social networks, set to true
.