Deletes an existing policy from the AgentCore Policy system. Once deleted, the policy can no longer be used for agent behavior control and all references to it become invalid. This is an asynchronous operation. Use the <code>GetPolicy</code> operation to poll the <code>status</code> field to track completion.
delete/policy-engines/{policyEngineId}/policies/{policyId}
Path parameters
policyEngineIdstring required
The identifier of the policy engine that manages the policy to be deleted. This ensures the policy is deleted from the correct policy engine context.
policyIdstring required
The unique identifier of the policy to be deleted. This must be a valid policy ID that exists within the specified policy engine.
Response
Success