curl --request DELETE \
--url https://app.onlyfansapi.com/api/{account}/media/vault/delete-media \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"mediaIds": [
1234567890
]
}'
{
"data": {
"success": true
},
"_meta": {
"_credits": {
"used": 1,
"balance": 981,
"note": "Always"
},
"_cache": {
"is_cached": false,
"note": "Cache disabled for this endpoint"
},
"_rate_limits": {
"limit_minute": 1000,
"limit_day": 50000,
"remaining_minute": 996,
"remaining_day": 49926
}
}
}
Delete one or multiple media from your vault.
curl --request DELETE \
--url https://app.onlyfansapi.com/api/{account}/media/vault/delete-media \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"mediaIds": [
1234567890
]
}'
{
"data": {
"success": true
},
"_meta": {
"_credits": {
"used": 1,
"balance": 981,
"note": "Always"
},
"_cache": {
"is_cached": false,
"note": "Cache disabled for this endpoint"
},
"_rate_limits": {
"limit_minute": 1000,
"limit_day": 50000,
"remaining_minute": 996,
"remaining_day": 49926
}
}
}
You can retrieve your token by visiting the OnlyFansAPI Console and clicking API Keys -> Create API Key.
The Account ID
The response is of type object
.