Hi! We recently had a requirement to rename an object in DAP that had already synced from CyberArk.
Due to this I now have a few stale variables that I’d like to delete.
I’ve created a delete yml file, yet whenever I try to load it I get ‘object not found’. It appears that my endpoint is off. I’ve tried various possibilities. I’m loading this under the Delete Method.
I think you’re very close with the syntax. I can suggest a couple of tweaks to try, and if that doesn’t work, I can show you how I tried this out with a curl command.
In example 1, it looks like your endpoint is missing an actual policy. The endpoint should be:
For example, if you originally loaded the policy that had variable definitions at the root
policy branch, then $POLICY would be root. Otherwise, it’s your policy path (without root, that’s implicit in the path).
In example 2, I think the variable name in your record shouldn’t have a leading /,
but everything else looks good.
Example Variable Delete Using curl:
Here’s an example using curl. I’m using Conjur OSS, but the API should be the same for DAP.