RenderIO
Api referenceCommands

Delete Command Files

Delete all output files associated with a command from R2 storage.

Delete Command Files

DELETE /api/v1/commands/:commandId/files

Delete all output files associated with a command from storage. This permanently removes the files from R2 and marks them as deleted. The command metadata itself is preserved -- only the stored files are removed.

Authentication

Requires API key via X-API-KEY header.

Request

Headers

HeaderTypeRequiredDescription
X-API-KEYstringYesYour API key with ffsk_ prefix

Path parameters

ParameterTypeRequiredDescription
commandIdstringYesThe unique identifier of the command whose files should be deleted.

Response

200 OK

{
  deleted: true;
  files_deleted: number;
}
FieldTypeDescription
deletedbooleanAlways true on success.
files_deletednumberThe number of files that were deleted.

Error responses

StatusErrorDescription
401UNAUTHORIZEDMissing or invalid API key.
404NOT_FOUNDNo command found with the given ID, or the command belongs to a different account.
429RATE_LIMITEDToo many requests. Retry after the period indicated in the Retry-After header.

Examples

curl

curl -X DELETE https://renderio.dev/api/v1/commands/a1b2c3d4-e5f6-7890-abcd-ef1234567890/files \
  -H "X-API-KEY: ffsk_your_api_key_here"

JavaScript (fetch)

const commandId = "a1b2c3d4-e5f6-7890-abcd-ef1234567890";

const response = await fetch(
  `https://renderio.dev/api/v1/commands/${commandId}/files`,
  {
    method: "DELETE",
    headers: {
      "X-API-KEY": "ffsk_your_api_key_here",
    },
  },
);

const { deleted, files_deleted } = await response.json();
console.log(`Deleted: ${deleted}, Files removed: ${files_deleted}`);

Python (requests)

import requests

command_id = "a1b2c3d4-e5f6-7890-abcd-ef1234567890"

response = requests.delete(
    f"https://renderio.dev/api/v1/commands/{command_id}/files",
    headers={
        "X-API-KEY": "ffsk_your_api_key_here",
    },
)

data = response.json()
print(f"Deleted: {data['deleted']}, Files removed: {data['files_deleted']}")

On this page