Deleting a Policy with the REST API

Veracode APIs

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”