Deleting API-managed categories, URLs, and IP addresses
Start a new transaction:
curl -k -u <username>:<password> -X POST https://
<ps_ip_address>:15873/api/web/v1/categories/start
Delete an API-managed category:
curl -k -u <username>:<password> -X POST https://
<ps_ip_address>:15873/api/web/v1/categories/delete -d
"{\"Transaction ID\":\"<transaction_ID_string>\",\"Category
Names\":[\"<category_name>\"]}"
Or:
curl -k -u <username>:<password> -X POST https://
<ps_ip_address>:15873/api/web/v1/categories/delete -d
"{\"Transaction ID\":\"<transaction_ID_string>\",\"Category
IDs\":[<category_ID>]}"
Delete URLs or IP addresses from an API-managed category:
curl -k -u <username>:<password> -X POST https:
<ps_ip_address>:15873/api/web/v1/categories/delete/ urls -d
@<filename>.json --header "Content-Type: application/json"
Or:
curl -k -u <username>:<password> -X POST https:
<ps_ip_address>:15873/api/web/v1/categories/delete/ urls --
upload-file /<path>/<filename>.json
Commit the transaction:
curl -k -u <username>:<password> -X POST https://
<ps_ip_address>:15873/api/web/v1/categories/
commit?TransactionID="<id_string>"