How can I reinstall Matomo? Can I keep the existing data?
To force a new installation of Matomo (Piwik), you can simply delete the configuration file in config/config.ini.php. When you visit Matomo, it will trigger the Matomo installation process. If you install Matomo specifying an existing database containing Matomo data, the installation process will automatically detect that the Matomo tables already exist. You will be able to choose to either keep your existing data, or delete the tables and start from a clean database.
Next FAQ: Is the Matomo JavaScript Tracker CSP (Content Security Policy) compatible and how do I set it up?
Previous FAQ: How do I monitor that Matomo service is up and running?