Changes to Clear the diagnostics collection

delete/api/diagnostics