You can use the Threads API to delete posts.
You can delete a Threads post by making a request to the DELETE /threads
endpoint with the post's media object ID. Make sure to include the access_token
parameter with your API request.
The Threads Mentions API requires an appropriate access token and permissions based on the node you are targeting. While you are testing, you can easily generate tokens and grant your app permissions by using the Graph API Explorer.
threads_basic
— Required for making any calls to all Threads API endpoints.threads_delete
— Required for making any delete calls.curl -i -X DELETE \ "https://graph.threads.net/v1.0/<THREADS_MEDIA_ID>?access_token=<ACCESS_TOKEN>"
{ "success": true, "deleted_id": "1234567", }
The request above deletes a Threads post and returns a response indicating whether the action was successful or not, along with the deleted post's ID.