How to clear sample data from a Joomla Website

Load Joomla to your site with all the sample data. This is the sequence of steps to remove most of the sample data.

  • Article Manager – Trash All
  • Trash Manager – Delete All
  • Category Manager – Delete All
  • Section Manager – Delete All
  • Menu Manager – Delete those not wanted. I keep the Main and Top ( Joomla requires one )
  • Menu Trash Manager – Delete All
  • The next are Optional if you don't want them:
  • Banner Manager – Delete all Banners, Clients and Categories
  • News Feed Manager – Delete all feeds and categories
  • Poll Manager – Delete all
  • Web Link Manager – Delete all links and categories
  • Module Manager – Delete Admin Welcome and turn off ones you don't want running. Example: banners etc.
  • Template Manager
    At this point, you have a bare bones Joomla without the sample data but with the core modules intact. ( less the optional ones you may have uninstalled.)

Now, if you want to duplicate this bare bones site to other sites without having to go through all the above steps:

1. Export the database (from the above site) and save it. It's used to provide the new site's DB.
2. Load Joomla to a new site, but don't go through the install procedures.
3. Create an empty mysql database on the new site.
4. Import the database created in step 1 into the new DB created in step 3..
5. Copy the configuration.php file from the original site to the new site and make changes to reflect the new site's info. e.g. host name, password, site name etc.
6. Rename the installation directory to something else or delete it.
That's it. You should be able to access the new "cloned" site with the same admin name and password.

Source: PhilOSparta in