Database operations with owncloud

The need arose for a full reset of my owncloud instance. It is not overly difficult to do this. First off, I have owncloud 6 installed and configured to use MySQL. First thing is to stop the webserver

service httpd stop

then log into the SQL server

mysql -h localhost -u root -p

now, select the database and then drop the ownclound filecache table

USE ocdb;
TRUNCATE oc_filecache;

Next, in the owncloud installation directory, edit config/config.php and change the installed line to read false. Before starting the service back up delete the data files you wish to remove. And, finally restart the web server

service httpd start