add a function to remove swap files