Skip to content

Commit

Permalink
(DOCSP-40808) Replace delete with remove
Browse files Browse the repository at this point in the history
  • Loading branch information
elyse-mdb committed Nov 4, 2024
1 parent 43e1af6 commit a945666
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions source/includes/indexes/indexes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,10 @@ int main(){
// end-update-search-index
}
{
// start-delete-search-index
// start-remove-search-index
auto siv = collection.search_indexes();
siv.drop_one("myDynamicIndex");
// end-delete-search-index
// end-remove-search-index
}

}
10 changes: 5 additions & 5 deletions source/indexes/atlas-search-index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -226,19 +226,19 @@ analyzer on the ``title`` field:

.. _cpp-atlas-search-index-drop:

Delete a Search Index
Remove a Search Index
---------------------

To remove an Atlas Search index from a collection, call the ``drop_one()`` method and pass in
the name of the Search index you want to delete.
the name of the Search index you want to remove.

The following example shows how to delete an Atlas Search index named ``myDynamicIndex``:
The following example shows how to remove an Atlas Search index named ``myDynamicIndex``:

.. literalinclude:: /includes/indexes/indexes.cpp
:language: cpp
:dedent:
:start-after: start-delete-search-index
:end-before: end-delete-search-index
:start-after: start-remove-search-index
:end-before: end-remove-search-index

Additional Information
----------------------
Expand Down

0 comments on commit a945666

Please sign in to comment.