drupal 6 delete all nodes by anonymous user
VBO (Views Bulk Operations, a great module) does an admiral job. I could only get it to work for about 250 at a time; 500 at a time didn't time out but instead weirdly caused a validation error. Also...
View ArticleGetting rid of modules entirely, with update function for cleanup
When deleting modules in code you can clean up after the fact, esp. for modules that don't clean up after themselves well enough on uninstall.git rm -r sites/all/modules/contrib/hashcashgit rm -r...
View ArticleDelete a content type programmatically in Drupal 7
This is what i put as an update hook in a .install file:<?php/** * Delete unused content types. * * Adapted from node_type_delete_confirm_submit(). */function anjaliup_update_7005() { $types =...
View Article
More Pages to Explore .....