# Is there a way to search for all questions by a user who deleted their account?

I'm looking for a reference I provided in a comment to a question asked by a user who subsequently deleted their account. There were a lot of related questions so I can't remember which one it was by title.

The usual "search by user name" tool doesn't work if the user is deleted.

Is there another way?

SELECT Id As [Post Link] FROM Posts WHERE OwnerDisplayName = 'user#'

You just have to replace # with the user ID.