Share this page

# DELETE: Delete a collection

This topic provides instructions for using the DELETE operation to delete multiple entities.

In this topic:

## Overview

When performing the DELETE operation, consider the following points:

- A request for a delete on a collection deletes the entire collection.
- Deleting can be done using filtering.
- Supports partial success, similar to POST and PUT.
- You can delete up to 5,000 entities through a single request.

- On success, only status code 200 (OK) is returned.

Caution: It is possible to delete all of the instances in a collection if no query is specified. For example, the following line will delete all defects in the project:

`DELETE .../api/shared_spaces/<space_id>/workspaces/<workspace_id>/defects`

If your site has been configured to be compliant with the GDPR 'Right to erasure (right to be forgotten)' regulation, the deletion of a collection is not supported.

## Example

The following example deletes all defects.

    *** Request ***

    DELETE .../api/shared_spaces/<space_id>/workspaces/<workspace_id>/defects/

    *** Response ***

    HTTP/1.1 200 OK

## See also

- Resources
- Collections
- Entities
- DELETE: Delete an instance

https://admhelp.microfocus.com Software Delivery Management 8942
Tips to improve your search results... OpenText™ Software Delivery Management Help Center OpenText™ Software Delivery Management Help 26.3 All View Local Help Center View Online Help Center Version: