remove useless permissions