Test deleting file.