Remove extensions and make unexecutable