Once you decide that you no longer need a collection or that you want to start over, you can delete it. Deleting a collection will remove all the documents and indexes associated with it.

client.collections().delete("my-collection")

If your collection is too large it can take a moment to delete it. You can check the status of the deletion by listing the collections again.