Is there a way to initialise MODx, i.e. press one button and delete all the pages? I am practising importing HTML pages (generated by PHP) and need to experiment a bit which means multiple imports until I get everything set-up correctly, e.g. the site structure. It would be a pain to have to delete them by hand or re-instal to get a clean MODx.
If you go into PhpMyAdmin, select the modx_site_content table and "Empty" it, you’ll delete all pages. If you want to save some, you can drop individual records in that table.
Or...use the Doc Manager Module..
1. Modules > Doc Manager > Other Properties >
2. Under Miscellaneous Document Settings (available settings) in the drop down choose Delete/Undelete
3. Select Delete using the radio buttons
4. Specify a Range of Document IDs
5. Click submit
OK, not exactly one click...But if you’d rather not dabble with the db...You will also have to purge the deleted documents. Good thing with this method, if you change your mind you can always undelete the resources (documents).
cheers/k
Pre-installed Doc Manager module let you delete multiple docs at the same time, then you need to click on the trash bin above the site tree, to purge them.
But this wouldn’t reset the document ID’s as BobRay’s method would.
//@kongondo LOL!
Thanks for your answers, it’s very helpful.