Advice on validating/recovering/recreating database

JavaScript seems the wrong spot since true CLI and even internal C# code also delete.

The solution would be to deduplicate the request before doing it, but I think you just did:

Thanks for the fix.