Delete all documents from solr with a cURL JSON POST

If you want to delete all documents from solr with a cURL JSON POST:
curl -i -H ‘Accept: application/json’ -H ‘Content-type: application/json’ -X POST -d ‘{“delete”: { “query”:”*” }}’ http://localhost:8080/apache-solr-3.3.0/update/json?commit=true