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
string
required
Bearer token for authentication. Format:
Bearer <your-api-key>Required Permission
STORAGE_WRITE
Request Body
string
Filter by file kind. Available values:
image, video, audio, documentstring
ISO 8601 date - purge items created before this date
string
ISO 8601 date - purge items created after this date
Response
string
Success message indicating the operation result
number
Number of items purged (or would be purged if dry run)
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.
