API Keys
Banking
Connect OnlyFans Account
Mass Messaging
Media Vault
Media Vault Lists
Notifications
Payouts
Post Comments
Post Labels
Posts
Public Profiles
Saved For Later (Messages)
Saved For Later (Posts)
Statistics | Reach
Statistics | Statements
Tracking Links
Transactions
Trial Links
Users
Chats
Delete Message
Delete a message from a chat. Please note that ONLY messages sent less than 24 hours ago can be deleted.
DELETE
/
api
/
{account}
/
chats
/
{chat_id}
/
messages
/
{message_id}
Delete Message
Copy
curl --request DELETE \
--url https://app.onlyfansapi.com/api/{account}/chats/{chat_id}/messages/{message_id} \
--header 'Authorization: Bearer <token>'
Copy
{
"data": {
"success": true
},
"_meta": {
"_credits": {
"used": 1,
"balance": 9976,
"note": "Always"
},
"_cache": {
"is_cached": false,
"note": "Cache disabled for this endpoint"
},
"_rate_limits": {
"limit_minute": 1000,
"limit_day": 50000,
"remaining_minute": 999,
"remaining_day": 49990
}
}
}
Authorizations
You can retrieve your token by visiting the OnlyFansAPI Console and clicking API Keys -> Create API Key.
Path Parameters
The Account ID
The ID of the chat, usually a fan's OnlyFans User ID
The ID of the message to delete
Response
200 - application/json
Success
The response is of type object
.
Delete Message
Copy
curl --request DELETE \
--url https://app.onlyfansapi.com/api/{account}/chats/{chat_id}/messages/{message_id} \
--header 'Authorization: Bearer <token>'
Copy
{
"data": {
"success": true
},
"_meta": {
"_credits": {
"used": 1,
"balance": 9976,
"note": "Always"
},
"_cache": {
"is_cached": false,
"note": "Cache disabled for this endpoint"
},
"_rate_limits": {
"limit_minute": 1000,
"limit_day": 50000,
"remaining_minute": 999,
"remaining_day": 49990
}
}
}
Assistant
Responses are generated using AI and may contain mistakes.