Delete files properly