Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

As of Versionproduct version 2021 Winter | component version 2021 Winter
Request MethodDELETE
Response FormatJSON
Description


Excerpt
Deletes multiple objects specified by ID in the JSON request body.

A delete permission is required for all objects. A folders can not folder cannot be deleted , if it is not empty.
If the object for at least one ID can not cannot be found or can not cannot be deleted, the whole request fails.

The number of objects that can be deleted via this endpoint is limited to 100.

Other If other properties beside system:objectId are specified in the request body, they are just ignored. Notably objects found by a search request can be deleted by using Especially, the result list of a the search request unmodified as the request body for the delete requestsearch response can thus directly be sent as request body to delete all included objects.

Request HeaderContent-Type: application/json
Request Example

The new metadata is object IDs of the objects to be deleted are passed in the request body in JSON format.

Code Block
{
	"objects": [{
		"properties": {
			"system:objectId": {
				"value": "cdc7095f-a5ce-486d-92a7-6d0955d969ee"
			}
		}
	},
	{
		"properties": {
			"system:objectId": {
				"value": "cdc7106f-a5ce-597d-92a7-1d1166d171ee"
			}
		}
	}]
}

Result Example

no result

Response
Meaning of the response status codes:

200 OK

All DMS objects has been were deleted.

403 Forbidden

Insufficient permissions for at least one object.

404 Not Found

At least one specified object can not of the specified objects cannot be found.

409 Conflict

At least one specified object can not of the specified objects cannot be deleted due to retention (for more details click here).

...