Starting over
During development, it is quite common to have to start with a fresh repository. Usually this is because you've made a significant change to the model, and you'd rather blow everything away than clean up inconsistencies. The Alfresco repository is made up of three parts: the metadata stored in the relational database, the binary files stored on the file system and the Solr indexes. To clear out the repository, you have to clear out all three. If you delete the data directory but not the database, you will see a bunch of data integrity problems because the binary files that the database knows about are no longer there. Be sure that Alfresco is stopped.
Let's start by the database:
- Start PostgreSQL:
service alfresco start postgresql
- Recreate the database:
/opt/alfresco/postgresql/bin/psql -U postgres Password for user postgres: admin postgres=#DROP DATABASE alfresco; ...