removing the files properly