Content mindwipe?
joachim - May 7, 2008 - 16:25
I'm setting up a site for a client, and I'm going to be creating test nodes to check things like CCK fields, theming and layout, views etc etc.
What I'd like to be able to do once I'm ready is wipe the nodes from the database entirely, but leave everything else such as blocks, menus, views, module settings, etc. In effect, wipe the content but not the frame, leaving a Drupal installation that's ready to go from node number 1.
Is there a simple way to do this?

I'm also interested.
I'm also interested.
in
in www.example.com/admin/content/node, you can delete all of the content you want. That will preserve all content TYPES, just remove all the content.
As for resetting the node id number, you'd have to manually edit the {sequences} table to do that, which I don't recommend. At all. =)
Dave
> in
> in www.example.com/admin/content/node, you can delete all of the content you want. That will preserve all content TYPES, just remove all the content.
Hmm.. maybe I can describe the 'issue' I'm thinking about.
I want to build my first site, but along the way I'm obviously going to make 100's of mistakes, and also create dozens of test nodes, menus, file attachments, images, users, etc whilst testing and experimenting. Now, when I've got a test site set-up the way I want my live site to be, if possible I'd like to avoid doing a clean install and trying to REMEMBER and REPEAT all the hundreds of changes I made to the test site; it would be great to be able to 'reset everything to zero' on the test site - nodes, users, file/image attachments, etc - and start using it as the live site.
In other words, is there a way to avoid trying to manually reproduce the test site, step by step, when I'm ready to do the live site?
Cheers.
Just found this module which
Just found this module which looks like it does the job: http://drupal.org/project/delete_all
Not tested it yet.