code: def bulk_delete(self, *filters_or_records):
          
  
          _type = validate_filters_or_records(filters_or_records)
          data_dict = {}
  
          # build record_id list
          if _type is Record:
              record_ids = []
              for record in filters_or_records:
                  record_ids.append(record.id)
              data_dict['recordIds'] = record_ids
  
          # build filters
          else:
              filters = []
              record_stub = record_factory(self._app)
              for filter_tuples in filters_or_records:
                  field = record_stub.get_field(filter_tuples[0])
                  filters.append({
                      "fieldId": field.id,
                      "filterType": filter_tuples[1],
                      "value": field.get_report(filter_tuples[2])
                  })
              data_dict['filters'] = filters
  
          return self._swimlane.request('DELETE', "app/{0}/record/batch".format(self._app.id), json=data_dict).text
docs: Shortcut to bulk delete records
          
          .. versionadded:: 2.17.0
          
          Args:
              *filters_or_records (tuple) or (Record): Either a list of Records, or a list of filters.
              
          Notes:
              Requires Swimlane 2.17+
              
          Examples:
          
              ::
              
                  # Bulk delete records by filter
                  app.records.bulk_delete(
                      ('Field_1', 'equals', value1),
                      ('Field_2', 'equals', value2)
                  )
                  
                  # Bulk delete by record instances
                  record1 = app.records.get(tracking_id='APP-1')
                  record2 = app.records.get(tracking_id='APP-2')
                  record3 = app.records.get(tracking_id='APP-3')
                  app.records.bulk_delete(record1, record2, record3)
  
          Returns:
              :class:`string`: Bulk Modify Job ID