Is there a way to remove all datasets in a selecte...
# ui
a
Is there a way to remove all datasets in a selected environment from the UI? If not, what's the best way? I have my instance deployed on EKS.
b
hey Filip! there's no way to do that through the UI right now. However, you can do that via CLI - I would try
datahub delete --env DEV --entity_type dataset
or swap out the environment you want to delete from! if you want it to be a hard delete you need to add
--hard
to the end. Here are some docs on it: https://datahubproject.io/docs/how/delete-metadata/#delete-using-broader-filters
a
ok, do you know how I can execute this command on eks?
Thanks!
b
of course! and yeah you need your CLI to be pointing at your instance that you care about. you can do that by setting environment variables in a terminal window:
export DATAHUB_GMS_URL=<your gms host url ie. https://<your domain>/gms>
export DATAHUB_GMS_TOKEN=<token that you need to generate>
you can generate a token to use in Settings under Access Tokens in the UI
before you run any delete command i would highly recommend doing a dry run which will print out all the urns to be deleted. this will ensure you're pointing at the right instance and that you're deleting what you expect. to do that add
--dry-run
to the end of the command I posted above
a
Thanks a lot, will test it today
Tested, works like a charm. Thanks!
b
great to hear! no problem at all