Delete policy branch in Conjur Cloud

Hello - What is the process to delete a conjur policy branch under /data.

I created a simple policy called “dev” in the /data policy branch, but struggling to delete the dev policy branch.

Tried the following YAML policy and that did not work.

  • !delete
    record: !policy dev

Thanks in advance

Hi,
Your policy seems right (except that the bulletin should be a dash, but that’s probably the editor’s copy-paste doing).
One more thing to mention is to load this policy in PATCH and not in POST. Only PATCH allows to delete/deny/revoke.
If it doesn’t help please share the error message that you’re getting.

Thanks,
eyal

1 Like

Thanks a lot @egvili PATCH did the trick

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.