Delete permissions with js