Undelete on repository deletion.

Some warnings and other small corrections