code: func (r *Repository) DeleteObject(hash plumbing.Hash) error {
  	los, ok := r.Storer.(storer.LooseObjectStorer)
  	if !ok {
  		return ErrLooseObjectsNotSupported
  	}
  
  	return los.DeleteLooseObject(hash)
  }
docs: // DeleteObject deletes an object from a repository.
  // The type conveniently matches PruneHandler.