How to remove target permissions