Remove useless permissions.