Remove unnecessary 'rm' commands