Only deleting files if they are being renamed