Implement the archive delete API endpoint.

Also fixed tests not properly skipped in the case Mongo
has no JS support, and improved the test separation
when counters are exercised.
Please add the link to the doc API for delete implementation.