def delete_incidents(self, field=None, value=None):
    incident_collection = self._get_incident_collection()
    if ((field is None) or (value is None)):
        incident_collection.delete_many({})
    else:
        incident_collection.delete_many({field: value})
def delete_incidents(self, field=None, value=None):
    incident_collection = self._get_incident_collection()
    if ((field is None) or (value is None)):
        incident_collection.delete_many({})
    else:
        incident_collection.delete_many({field: value})