You can delete the existing sample server databases and restore them to their initial state.
To run the following commands, you must define the ANT_HOME variable. For more information, see Setting up your environment to use Ant.
If you want to keep the modifications that you have done to the existing databases, create a backup of the existing databases located in <InstallDir>/shared/data/derby.
To restore the databases: