code: func (bh *blobHandler) DeleteBlob(w http.ResponseWriter, r *http.Request) {
  	context.GetLogger(bh).Debug("DeleteBlob")
  
  	blobs := bh.Repository.Blobs(bh)
  	err := blobs.Delete(bh, bh.Digest)
  	if err != nil {
  		switch err {
  		case distribution.ErrUnsupported:
  			bh.Errors = append(bh.Errors, errcode.ErrorCodeUnsupported)
  			return
  		case distribution.ErrBlobUnknown:
  			bh.Errors = append(bh.Errors, v2.ErrorCodeBlobUnknown)
  			return
  		default:
  			bh.Errors = append(bh.Errors, err)
  			context.GetLogger(bh).Errorf("Unknown error deleting blob: %s", err.Error())
  			return
  		}
  	}
  
  	w.Header().Set("Content-Length", "0")
  	w.WriteHeader(http.StatusAccepted)
  }
docs: // DeleteBlob deletes a layer blob