remove file correctly