WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have accidentally deleted a WP user. By deleting it, WP removed all the media files, pages etc.

I could retrieve pages and posts from trash. But I could not restore media items. Is there a way to restore all items from trash back?

share|improve this question
up vote 2 down vote accepted

When deleting a user, WordPress displays a warning that unless you attribute the user's posts to a new user, it's posts will be deleted and you cannot undo those deletions.

That means the only way to restore the posts and media is to restore a backup of the WordPress instance or database which you hopefully have.

share|improve this answer
Ok, I understand. In fact, I saw the warning. But I was in a hurry. My mind had some other concerns. And I didn't even spend a second about the warning :) Human psychology beats any warning. – Mert Nuhoglu Jan 14 '13 at 19:46
For what it's worth, I completely agree that the workflow of this sucks. – mrwweb Jan 14 '13 at 19:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.