deleteAndEditFile