File must not be open to delete it.