Comments
Delete Comments
Delete either a single comment or all comments under a post
DELETE
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.
For example, you get all the comments for a particular Instagram post using the Get Comments endpoint with the
The returned JSON will have a
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 thecommentId 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.
TikTok — own-authored comments only. On TikTok,
DELETE /comments only succeeds for comments authored by the authenticated TikTok account itself (for example, replies you posted via Ayrshare’s reply endpoint or directly inside the TikTok app). Attempting to delete a comment authored by another user — even one left on a video you own — returns Ayrshare code: 328. If you need to moderate third-party comments on your own TikTok videos, contact support so we can confirm what’s available for your linked account type.searchPlatformId set to true.
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 single comment by providing the Social Comment ID from the social network.
- Must include the
searchPlatformIdset totrue.
Body Parameters
Required if deleting comments sent via Ayrshare. The platforms to delete comments from.Supported platforms:
bluesky, facebook, instagram, linkedin, reddit, threads, tiktok, twitter, youtube.Deleting comments sent via Ayrshare
Required if deleting using the Social Comment
ID, which is the
commentId from the
social networks.Supported platforms: bluesky, facebook, instagram, threads, 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.Deleting comments with Social Comment ID
TikTok only. Set to
true, together with videoId, to hide a TikTok comment from public viewers instead of deleting it. The success response returns action: "hide" and echoes the comment. Sending hide=true without videoId returns HTTP 400.Hidden comments remain visible to the video owner in TikTok Studio.Hiding a TikTok comment
Required when hiding a TikTok comment (
hide=true). The TikTok video ID the comment belongs to.