{ "status": "success", "bluesky": { "action": "delete", "status": "success", "id": "at://did:plc:d/app.bsky.feed.post/3lez", // Bluesky Social Comment ID "comment": "This is a comment" }, "facebook": { "action": "delete", "status": "success", "id": "938010233_939392023", // Facebook Social Comment ID "comment": "This is a comment" }, "instagram": { "action": "delete", "status": "success", "id": "18010439663043269", // Instagram Social Comment ID "comment": "This is a comment" }, "linkedin": { "action": "delete", "status": "success", "id": "7133271664032669696", // LinkedIn Social Comment ID "comment": "This is a comment" }, "threads": { "action": "delete", "status": "success", "id": "18064102964006231" // Threads Social Comment ID }, "tiktok": { "action": "delete", "status": "success", "commentId": "7303719953248109358", // Deprecated December 1, 2023. Use the id field instead. "id": "7303719953248109358", // TikTok Social Comment ID "comment": "This is a comment" }, "twitter": { "action": "delete", "status": "success", "id": "1633128546494459904", // Twitter Social Comment ID "comment": "This is a comment" }, "youtube": { "action": "delete", "status": "success", "id": "Ugy2m5u-LS9M29Gn3hd4AaABAg", // YouTub Social Comment ID "comment": "This is a comment" }}
Comments
Delete Comments
Delete either a single comment or all comments under a post
{ "status": "success", "bluesky": { "action": "delete", "status": "success", "id": "at://did:plc:d/app.bsky.feed.post/3lez", // Bluesky Social Comment ID "comment": "This is a comment" }, "facebook": { "action": "delete", "status": "success", "id": "938010233_939392023", // Facebook Social Comment ID "comment": "This is a comment" }, "instagram": { "action": "delete", "status": "success", "id": "18010439663043269", // Instagram Social Comment ID "comment": "This is a comment" }, "linkedin": { "action": "delete", "status": "success", "id": "7133271664032669696", // LinkedIn Social Comment ID "comment": "This is a comment" }, "threads": { "action": "delete", "status": "success", "id": "18064102964006231" // Threads Social Comment ID }, "tiktok": { "action": "delete", "status": "success", "commentId": "7303719953248109358", // Deprecated December 1, 2023. Use the id field instead. "id": "7303719953248109358", // TikTok Social Comment ID "comment": "This is a comment" }, "twitter": { "action": "delete", "status": "success", "id": "1633128546494459904", // Twitter Social Comment ID "comment": "This is a comment" }, "youtube": { "action": "delete", "status": "success", "id": "Ugy2m5u-LS9M29Gn3hd4AaABAg", // YouTub Social Comment ID "comment": "This is a comment" }}
Available on Premium, Business, Enterprise plans.
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 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.
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.
Copy
Ask AI
GET https://api.ayrshare.com/api/comments/18231730279304111?platform=instagram&searchPlatformId=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.
{ "status": "success", "bluesky": { "action": "delete", "status": "success", "id": "at://did:plc:d/app.bsky.feed.post/3lez", // Bluesky Social Comment ID "comment": "This is a comment" }, "facebook": { "action": "delete", "status": "success", "id": "938010233_939392023", // Facebook Social Comment ID "comment": "This is a comment" }, "instagram": { "action": "delete", "status": "success", "id": "18010439663043269", // Instagram Social Comment ID "comment": "This is a comment" }, "linkedin": { "action": "delete", "status": "success", "id": "7133271664032669696", // LinkedIn Social Comment ID "comment": "This is a comment" }, "threads": { "action": "delete", "status": "success", "id": "18064102964006231" // Threads Social Comment ID }, "tiktok": { "action": "delete", "status": "success", "commentId": "7303719953248109358", // Deprecated December 1, 2023. Use the id field instead. "id": "7303719953248109358", // TikTok Social Comment ID "comment": "This is a comment" }, "twitter": { "action": "delete", "status": "success", "id": "1633128546494459904", // Twitter Social Comment ID "comment": "This is a comment" }, "youtube": { "action": "delete", "status": "success", "id": "Ugy2m5u-LS9M29Gn3hd4AaABAg", // YouTub Social Comment ID "comment": "This is a comment" }}