Answers:
Uninstalling DSpace deletes all the data uploaded in DSpace. If you need the backup of data uploaded on DSpace, please backup your DSpace before uninstalling.
1. Stop Tomcat service.
2. Delete the following directories from the DSpace webroot directory in tomcat web server.
ROOT, rest, solr, oai, sword
3. Drop database "dspace"
4.. Locate the directory which you have mentioned as "dspace.dir" in local.cfg file and delete that directory.
Commands to uninstall DSpace installed in Ubuntu Linux OS 18.04 Environment
Note: These commands are provided by considering you have followed the DSpace installation steps provided in the Spoken tutorials. Also, you have followed exactly same naming conventions as demonstrated in the tutorial. If you have followed different naming conventions, then make changes in the command in accordingly.
1. Switch to DSpace user account
sudo su - dspace
2. Stop the Tomcat service.
sudo service tomcat8 stop
3. Delete the ROOT, rest, solr, oai, sword directories from the DSpace webroot directory in tomcat web server.
sudo rm -rf /var/lib/tomcat8/webapps/ROOT
sudo rm -rf /var/lib/tomcat8/webapps/oai
sudo rm -rf /var/lib/tomcat8/webapps/solr
sudo rm -rf /var/lib/tomcat8/webapps/sword
sudo rm -rf /var/lib/tomcat8/webapps/rest
3. Drop database "dspace"
psql -U postgres
drop database dspace;
4. Locate the directory which you have mentioned as "dspace.dir" in local.cfg file and delete that directory.
sudo rm -rf /home/dspace/dspace-install
Login to add comment