Delete (DELETE) Item from a List
Use this API to delete a single list item by specifying the code table and code. You can delete list items in the browser DPS tool or via the API.
To delete a list item:
Execute a GET command on the endpoint
{{url}}/codeTable/<codetable>/code, where the
codetable variable is the name of the list you want to read and
code is the value of the list item you want to delete.
For example, here is a request, using cURL, to delete a specific job title for an employee by setting the codetable variable toCFGEmployeeTitle and setting the list item variable code to Architect. For a list of code table values, see GUID-9B82635D-5ED2-41EA-8FA1-C2882CFC3561.
curl --request GET \ --url 'https://{{url}}/codeTable/CFGEmployeeTitle/Architect' \ --header 'authorization: Bearer {{oauth_token}}' \ --header 'content-type: application/json'
A successful DELETE returns the status code 200 OK.