Re-Freshing a Test System

7 views
Skip to first unread message

Sherry Lake

unread,
Jul 12, 2021, 4:10:04 PM7/12/21
to Dataverse Users Community
I have a test Dataverse repository that I would like to remove ALL test datasets.  Is it as easy as dropping the database?

Or could I "destroy" all datasets?

Or should I follow the instructions here?

With the above instructions.... Do I need to build a war file as the instructions say "To execute the script, make sure you have built a war file"

or do I need a war file that has been (already) built, for example the dataverse-5.5.war file, from the release install notes?

Thanks.
Sherry Lake

Philip Durbin

unread,
Jul 12, 2021, 4:39:08 PM7/12/21
to dataverse...@googlegroups.com
Dropping the database will do the trick but then you'd have to basically reinstall everything. In dev, I do this a lot with a script called "dev-rebuild.sh" that's mentioned in those docs you found in the dev guide. Head up that the script runs the installer in "insecure" mode, as mentioned. There are also some similar steps that might be more suitable for test or future prod systems at https://guides.dataverse.org/en/5.3/installation/installation-main.html#fresh-reinstall

If really all you want is to delete all the datasets and you're ok will deleting the dataverses too, these days I've been using the destroy_all_dvobjects.py at https://github.com/IQSS/dataverse-sample-data . That way you don't have to drop your database. It uses our favorite Python library, pyDataverse. :)

Hope this helps,

Phil

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-commu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/2e80d087-9c2c-4818-afdf-d3e032d6cb18n%40googlegroups.com.


--
Reply all
Reply to author
Forward
0 new messages