Delete multiple files and folders

This call lets you perform perform an asynchronous bulk deletion of files or folders. Deleting folders which aren't empty is allowed.

📘

If you are using Seven Bridges Platform EU, please use the following endpoint: https://eu-api.sbgenomics.com/v2/async/files/delete

Example request body

{
  "items": [
    {
      "file": "5c6d3c30e4b038363238932f"
    },
    {
      "file": "5c6d3c30e4b038363238932e"
     },
    {
      "file": "5c6d3c30e4b0383632389331"
    }
  ]
}

Response

See a list of Seven Bridges Platform-specific response codes that may be contained in the body of the response.

Response body

Key

Data type of value

Description of value

file

string

ID of this delete job.

result

string

The result of the job if available at the time the call is made. Use the details of a deletion job to see more information.

type

string

The type of job, which is DELETE in the case of deleting files.

state

string

The state is SUBMITTED at the time of making this call.

failed_files

string

The number of failed files if that information is available at the time of the call. You can get details of a deletion job with a dedicated call.

completed_files

string

The number of completed files if that information is available at the time of the call. You can get details of a deletion job with a dedicated call.

total_files

string

The number of failed files if that information is available at the time of the call. You can get the details of a deletion job with a dedicated call.

Language