Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By jo1ene on
Stupid me deleted a user that had previously posted a couple of stories. Now the stories are "dead" and un-administratable, as in I can't get rid of them. Delete them at the database level? How?
Comments
delete from node where nid =
delete from node where nid = uid;
uid should be the deleted user's numerical ID.
--
Drupal services
My Drupal services
Thank you. I think I can figu
Thank you. I think I can figure it out from this.
Shouldn't it be...
If what the user wanted to do was delete all nodes owned by a certain uid wouldn't the SQL syntax be:
DELETE FROM node WHERE uid = '[uid]'
Where [uid] was the numerical ID of the deleted user. nid is the numerical ID of the node, which is not related to the uid, is it?
Sure, it was too late when I
Sure, it was too late when I posted that...
--
Drupal services
My Drupal services