anchor.diff:      delete_attachment(Db, Doc, Name, []).
   
   %% @doc delete a document attachment
  -%% @spec(db(), string()|list(), string(), list() -> term()
  +%% @spec(db(), string()|list(), string(), list() -> ok 
   delete_attachment(#db{server=Server, options=IbrowseOpts}=Db, DocOrDocId, Name, Options) ->
       Options1 = couchbeam_util:parse_options(Options),
       {Rev, DocId} = case DocOrDocId of
  
positive.code: 
  %% @doc put an attachment
  %% @spec put_attachment(Db::db(), DocId::string(), Name::string(),
  %%                      Body::body(), Option::optionList()) -> iolist()
  %%       optionList() = [option()]
  %%       option() = {rev, string()} |
  %%                  {content_type, string()} |
  
negative.code: 
  %% @doc fetch a document attachment
  %% @spec fetch_attachment(db(), string(), string(), 
  %%                        list(), infinity|integer()) -> {ok, binary()}
  fetch_attachment(Db, DocId, Name, Options, Timeout) ->
      {ok, ReqId} = stream_fetch_attachment(Db, DocId, Name, self(), Options,
          Timeout),
  