epugh commented on a change in pull request #2401:
URL: https://github.com/apache/lucene-solr/pull/2401#discussion_r579661513



##########
File path: solr/solr-ref-guide/src/collection-management.adoc
##########
@@ -350,31 +506,46 @@ update commands, which are directed now to `collection2`.
 [[delete]]
 == DELETE: Delete a Collection
 
-`/admin/collections?action=DELETE&name=_collection_`
+The DELETE action is used to delete a collection.
+
+[.dynamic-tabs]
+--
+[example.tab-pane#v1deletecollection]
+====
+[.tab-label]*V1 API*
+
+With the v1 API, the `delete` command must be capitalized as `DELETE`:
+
+[source,bash]
+----
+http://localhost:8983/solr/admin/collections?action=DELETE&name=newCollection
+----
+====
+
+[example.tab-pane#v2deletecollection]
+====
+[.tab-label]*V2 API*
+
+
+[source,bash]
+----
+curl -X DELETE 
http://localhost:8983/api/collections/newCollection?omitHeader=true
+----
+====
+--
 
 === DELETE Parameters
 
 `name`::
 The name of the collection to delete. This parameter is required.
 
 `async`::
-Request ID to track this action which will be 
<<collections-api.adoc#asynchronous-calls,processed asynchronously>>.
+Request ID to track this action which will be 
<<collections-api.adoc#asynchronous-calls,processed asynchronously>> and is a 
V1 API only parameter.

Review comment:
       Really appreicate your digging through this on a detailed level!




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to