curl -X DELETE "https://api.nonefivem.com/cloud/storage/purge" \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{
"kind": "image",
"before": "2025-01-01T00:00:00Z"
}'
const response = await fetch("https://api.nonefivem.com/cloud/storage/purge", {
method: "DELETE",
headers: {
Authorization: "Bearer your-api-key",
"Content-Type": "application/json"
},
body: JSON.stringify({
kind: "image",
before: "2025-01-01T00:00:00Z"
})
});
const result = await response.json();
{
"message": "42 items purged successfully",
"purgedCount": 42
}
Storage
Purge Storage Items
Purge storage items based on specified criteria
DELETE
/
storage
/
purge
curl -X DELETE "https://api.nonefivem.com/cloud/storage/purge" \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{
"kind": "image",
"before": "2025-01-01T00:00:00Z"
}'
const response = await fetch("https://api.nonefivem.com/cloud/storage/purge", {
method: "DELETE",
headers: {
Authorization: "Bearer your-api-key",
"Content-Type": "application/json"
},
body: JSON.stringify({
kind: "image",
before: "2025-01-01T00:00:00Z"
})
});
const result = await response.json();
{
"message": "42 items purged successfully",
"purgedCount": 42
}
Purge multiple storage items based on filtering criteria such as age, MIME type, or metadata. Use this for bulk cleanup operations.
Authorization
Required Permission
STORAGE_WRITE
Request Body
Response
curl -X DELETE "https://api.nonefivem.com/cloud/storage/purge" \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{
"kind": "image",
"before": "2025-01-01T00:00:00Z"
}'
const response = await fetch("https://api.nonefivem.com/cloud/storage/purge", {
method: "DELETE",
headers: {
Authorization: "Bearer your-api-key",
"Content-Type": "application/json"
},
body: JSON.stringify({
kind: "image",
before: "2025-01-01T00:00:00Z"
})
});
const result = await response.json();
{
"message": "42 items purged successfully",
"purgedCount": 42
}
This action is irreversible. Deleted files cannot be recovered.
Combine
kind, before, and after to target specific files. For example,
purge all images created before a specific date.
