File

Deletes multiple files asynchronously. Requires a `secret_*` API key. Alternatively, you can use a `public_*` API key and JWT-based auth.

Changed on

Deletes multiple files asynchronously.

Requires a secret_* API key. Alternatively, you can use a public_* API key and JWT-based auth.

delete/v2/accounts/{accountId}/files/batch

Request

Path parameters

accountIdstring required

Your account ID.

This is visible on the settings page:

https://www.bytescale.com/dashboard/settings

Example:A623uY2

Request body

filesFilePath[] required

Example request

{
  "files": [
    "/uploads/image.jpg"
  ]
}

Response

Success.

jobDocs'https://www.bytescale.com/docs/job-api/GetJob' required

Link to the documentation that describes how to get a job's status from its job ID.

jobIdstring required

Job ID.

jobType'ProcessImageJob' | 'ProcessVideoJob' | 'ProcessAudioJob' | 'AntivirusJob' | 'ResetCacheJob' | 'DeleteFolderBatchJob' | 'DeleteFileBatchJob' | 'CopyFolderBatchJob' | 'CopyFileBatchJob' required

Job type.

jobUrlstring required

URL for the job's status.

You can GET this URL to retrieve the job's status.

You must authorize your GET request with a secret_* API key when accessing the URL.

Example response

{
  "jobId": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
  "jobUrl": "https://api.bytescale.com/v2/accounts/FW25aki/jobs/ExampleJob/01ARZ3NDEKTSV4RRFFQ69G5FAV"
}

Changes

    • warning

      added the new AntivirusJob enum value to the response property for the response status

    • warning

      added the new ProcessAudioJob enum value to the response property for the response status

    • warning

      added the new ProcessImageJob enum value to the response property for the response status

    • warning

      added the new ProcessVideoJob enum value to the response property for the response status

    • warning

      added the new ResetCacheJob enum value to the response property for the response status

    • info

      removed the ProcessFileJob enum value from the response property for the response status