This new user just asked two (poor quality) questions about selecting a random image with PHP. The second was pretty much a duplicate of the first and the first, in its current state, deserved to be closed.
I thought I'd type a longer comment, with a fragment of code, to help a user who was evidently struggling. As is my usual practice I wrote a comment on on the second question, copied it to clipboard, and submitted it - only to find the question deleted. I surfed back to the user's first question (still in my browser history) to post it there, but found that deleted too.
My understanding of usual moderation policy is this is rather excessive deletion. Sure, the user shouldn't be posting duplicates immediately after a question close, but whilst it is fine to delete the duplicate (though unusual) it is excessive to delete the first one too - it might be rescued, or benefit from comments.
Normally reposted questions are left closed but visible, as it is useful to see this in the user's profile (if they are inclined to post duplicates directly against the advice of a close, that is useful for readers to know). Was the quick deletion right in this case?