Best way to reindex documents using Logstash without uninstalling and reinstalling?

I can't seem to find information regarding how to clear an Elasticsearch index on my local machine in order to run the Logstash pipeline again?

curl -H "Content-Type: application/json" -XDELETE 0:9200/$INDEXNAME will do it.

Thank you so much!