Deleting a Policy with the REST API

Veracode APIs

This use case scenario provides the Policy REST API commands for deleting a security policy.

Use this command to delete a policy and replace it with another policy for the affected applications:
http --auth-type=veracode_hmac delete
     “https://api.veracode.com/appsec/v1/policies/{policyGuid}?replacement_GUID={replacement_GUID}”
    
Use this command to delete a policy and replace it with a default policy for the affected applications:
http --auth-type=veracode_hmac delete
     “https://api.veracode.com/appsec/v1/policies/{policyGuid}?replace_with_default_policy=true”