If you are running the deletebyquery.py script from within the nexus-webapp-driver Docker image, the following prerequisites are not necessary.
python setup.py install in incubator-sdap-nexus/data-accesspython setup.py install in incubator-sdap-nexus/analysispip install -r requirements.txt in incubator-sdap-nexus/tools/deletebyqueryNote: It is recommended to run this from within the nexus-webapp-driver Docker image.
python deletebyquery.py --solr <solr host>:8983 --cassandra <cassandra host> --cassandraUsername <cassandra username> --cassandraPassword <cassandra password> --query '<solr query>'
Run python deletebyquery.py without any arguments to see the full list of options.
To delete a dataset called my_dataset, with SDAP deployed using the Helm chart, run the following from within the nexus-webapp-driver Docker image:
cd /incubator-sdap-nexus/tools/deletebyquery python deletebyquery.py --solr sdap-solr-svc:8983 --cassandra sdap-cassandra --cassandraUsername cassandra --cassandraPassword cassandra --query 'dataset_s:"my_dataset"'