How To Remove Empty Field Value From Solr

This is the correct query to delete index from solr which have an empty title value. Example in XML format:

<delete><query>-title: [* TO *]</query></delete>

In CURL

curl http://example.com:8983/solr/collection1/update?wt=json \
    -d "stream.body=<delete><query>-name: [* TO *]</query></delete>"