Skip to main content
DELETE
/
storage
/
{fileId}
curl -X DELETE "https://api.nonefivem.com/cloud/storage/550e8400-e29b-41d4-a716-446655440000" \
  -H "Authorization: Bearer your-api-key"
const fileId = "550e8400-e29b-41d4-a716-446655440000";

const response = await fetch(
  `https://api.nonefivem.com/cloud/storage/${fileId}`,
  {
    method: "DELETE",
    headers: {
      Authorization: "Bearer your-api-key"
    }
  }
);
const result = await response.json();
{
  "message": "Item deleted successfully"
}
Delete a specific storage item using its unique identifier.

Authorization

Authorization
string
required
Bearer token for authentication. Format: Bearer <your-api-key>

Required Permission

STORAGE_WRITE

Path Parameters

fileId
string
required
UUID of the file to delete

Response

message
string
Success message confirming deletion
curl -X DELETE "https://api.nonefivem.com/cloud/storage/550e8400-e29b-41d4-a716-446655440000" \
  -H "Authorization: Bearer your-api-key"
const fileId = "550e8400-e29b-41d4-a716-446655440000";

const response = await fetch(
  `https://api.nonefivem.com/cloud/storage/${fileId}`,
  {
    method: "DELETE",
    headers: {
      Authorization: "Bearer your-api-key"
    }
  }
);
const result = await response.json();
{
  "message": "Item deleted successfully"
}
This action is irreversible. The file and its CDN URL will be permanently removed.

Error Responses

{
  "error": {
    "code": "NOT_FOUND",
    "message": "Storage item not found"
  }
}
{
  "error": {
    "code": "INVALID_UUID",
    "message": "Invalid file ID format"
  }
}