You are not logged in.
Some days ago, I did a bad rm, deleting /var/lib/pacman/local, I tried to recover my packages database using pacman log and some useful scripts that i found in the forums, but there was not solution. I had to reinstall arch.
I think that pacman must have a --rebuild-db parameter for rebuild the packages database like others pacackes managers.
Offline
I disagree. If you know what to delete, you can throw off any package manager beyond repair. What you need is to learn what NOT to delete, and/or keep backups.
Offline