print error message when a path cannot be deleted