• I am developing a theme on my self-hosted wordpress.

    How would I delete all the content of my wordpress install (i.e all posts, comments, uploads etc) and reset the installation to as if it had just been installed?

    I would then like to import the theme tester xml. Could someone give me a step by step guide as the one on the codex is not much use…

    thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • A reinstall would be the best (and safest/most effective) route. You could empty (truncate) db tables but the problem there is that you could remove too much and effectively lock yourself out completely. Or delete too little and retain all old theme options and taxonomy relationships etc.

    Thread Starter miocene22

    (@miocene22)

    hmmm, a reinstall would take a while.. Is there no quicker way? Like deleting the wp-content folder

    No – that won’t work. Your content is stored in the database.

    Just to elaborate – you don’t need to re-upload all of the files. Just set up a new database, amend your wp-config.php file to point to the new db and then run wp/admin/install.php

    Thread Starter miocene22

    (@miocene22)

    ah ok. I actually just went throught the admin panel and deleted all the posts, pages and uploads throught there. Didn’t take too long.

    Cheers anyways.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘delete all wordpress content’ is closed to new replies.