MCPcopy Create free account
hub / github.com/apache/answer-plugins / DeleteContent

Method DeleteContent

search-algolia/algolia.go:231–238  ·  view source on GitHub ↗

DeleteContent deletes the content

(ctx context.Context, contentID string)

Source from the content-addressed store, hash-verified

229
230// DeleteContent deletes the content
231func (s *SearchAlgolia) DeleteContent(ctx context.Context, contentID string) (err error) {
232 res, err := s.getIndex("").DeleteObject(contentID)
233 if err != nil {
234 return err
235 }
236 err = res.Wait()
237 return
238}
239
240// connect connect to algolia server
241func (s *SearchAlgolia) connect() (err error) {

Callers

nothing calls this directly

Calls 1

getIndexMethod · 0.95

Tested by

no test coverage detected