public async Task <ActionResult> DeleteTestReadings(string processing_accesstoken) { if (!await this.checkProcessingPermissions(processing_accesstoken)) { return(this.Error("DeleteTestReadings Denied")); } try { await MongoConnection.DeleteTestReadings(); } catch (Exception ex) { return(this.Error("DeleteTestReadings Failed: " + ex.Message)); } return(Success <string>("test readings deleted", "DeleteTestReadings")); }