So recently the shelf in my closet randomly came down. All the nails in the wall got ripped out and I’ve been trying to figure out how to put them back but have had some questions.
Can I simply put the nails back in the wall and hang the shelf? When the shelf came down I think it tore some wall out so the holes might be a little bigger than they should.
If the answer to 1 is no, what can I fill the holes with so that there is enough material for the nails to expand into? I have caulk and was thinking of just using that but looked online that spackle can be used too. The issue is all the info online was for covering nail holes not really filling them.
Looking at the parts, I was wondering if there may be a better way to reinstall the shelf. I was wondering if I should flip the bars that hold the shelf so that the hook carries the shelf. Here’s a picture of the situation. Hope this helps- https://imgur.com/a/E22wtvN
I would appreciate any assistance as I don’t wanna screw up the walls anymore than they are and I also don’t want the shelf to come down again because I did something wrong.

