dspace - How to restore PostgreSQL database to initial state as it was after fresh install -
i using postgresql database dspace project. inserted records in tables want script of database become empty contains data in table automatically inserted during fresh install.
[dspace]/bin/dspace database clean [dspace]/bin/dspace database migrate
swap in actual dspace install directory [dspace].
according the official dspace documentation:
running "dspace database clean" followed "dspace database migrate" return database fresh install state