Permanently delete all or filtered objects
Permanently deletes the objects of a definition in a space. The objects cannot be restored. The definition stays. Authorization: requires space:contribute on :spaceId. Lacking it gives 403 (no space:read gives 404). Body: { view? }. With view, only the objects that match the filters of that saved view are deleted. One request deletes at most 2000 objects. Returns { deleted, more }. When more is true, send the same request again.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
spaceId
definitionId
Request
This endpoint expects an object.
view
A saved view id. Only the objects that match its filters are deleted. Without it, all the objects are deleted.
Response
The deleted count.
deleted
How many objects the request deleted.
more
True when matching objects can stay. Send the same request again.
Errors
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error