by deleting permission, I want to do something like the below url
so here we have to specify the capability name one by one in our call to be deleted. I was hoping to finish everything in one call, like how it is when you add permissions to a user.
Sorry that is not currently supported. Perhaps you can use scripting to automate the process, though.