Delete a list
Removes a list from the system.
When you delete a list, the list's definition and any import or purge jobs that are associated with the list are removed.
IMPORTANT: Deleting a list does not remove the list's contents. If required, you should remove the list's contents before you delete the list.
To clear the list's contents, you must create a purge job. See the /lists/{listId}/purgeJobs
endpoint for details.
This two-step process for clearing and deleting a list is due to the non-deterministic
time it could take to clear the contents of a list.
You only can delete a list when its 'state' property is set to 'developing' and the list is not part of a relationship that is registered in the Catalog service.
A list's deletion fails if the list has any associated import or purge jobs that are running. If you believe that an import or purge job is incorrectly marked as running, you can force a list to delete. Doing so does not stop import or purge jobs that are running. You cannot force a list to delete when the 'state' property is set to 'deployed' or the list is involved in a relationship.
Name | Type | Required | Description |
---|---|---|---|
listId | string | true | A universally unique identifier for a list. Examples: "3659ea38-2618-4474-aeac-0bf6cfd3c322" |
Status | Meaning | Description | ||
---|---|---|---|---|
204 | No Content | The list was deleted. | ||
409 | Conflict | The request could not be completed due to a conflict with an existing resource. | Schema | |
500 | Internal Server Error | The request could not be fulfilled because of an unexpected server error. | Schema |