As i have seen that we can import and export bulk policies in ranger, Can we do same sort of operation to delete policies as well using Rest End Point. Let say if i have thousand of masking policies in Apache Ranger and i want to delete all of them. How can this task be achieved.
Thank you in Advance,
There is no direct call to pass all the policies and delete them, but yes you can get policy list from ranger based on your query param through get call:
eg. this will list all the policies in the repo mentioned.
and then you can write a script to iterate through that list and delete the policies through delete call: