This question already has an answer here:
So I did some reviews and then got this comment on a post of mine:
just so you know, link-only answers are frowned upon by SO. This answer and this answer should both have been deleted, and not flagged as "Looks Good", and now we have to flag them for moderator attention instead of letting users clean it up
Seems like it'd be hard to clean up a deleted post? I mean if the post is kept the OP (original poster) can in theory go back and edit it. Or someone else could to bring in the info.
If nothing else, keeping the post - as opposed to deleting it - gives the OP a chance to get notified about any replies they might receive. ie. replies such as "please don't post just links". If you delete the post all together presumably they wouldn't get any notifications. Their post would be deleted, they wouldn't know why and either they might not visit SO (stack overflow) again or they might make the same mistake again.