class_docstr: Provides convenience methods for accessing and modifying the rules table.
class_docstr_tok: ["Provides","convenience","methods","for","accessing","and","modifying","the","rules","table","."]
docstr: Delete any rules that exist in the rule database but not locally
docstr_tok: ["Delete","any","rules","that","exist","in","the","rule","database","but","not","locally"]
code: def _del_old_rules(self):
      """Delete any rules that exist in the rule database but not locally"""
      with self._table.batch_writer() as batch:
          for rule_name in self.remote_not_local:
              LOGGER.debug("Deleting rule '%s'", rule_name)
              batch.delete_item(Key={"RuleName": rule_name})
  
imports: from datetime import datetime, timedelta
  import boto3
  from streamalert.shared.helpers.dynamodb import ignore_conditional_failure
  from streamalert.shared.importer import import_folders
  from streamalert.shared.logger import get_logger
  from streamalert.shared.rule import Rule
label_desc: Use image node_id 4 for calling the RuleTable obj's underlying member method code with example usage: obj._del_old_rules() without return types