code: def delete_instance(self, instance, using_transactions=True, dry_run=False):
          
          self.before_delete_instance(instance, dry_run)
          if not using_transactions and dry_run:
              # we don't have transactions and we want to do a dry_run
              pass
          else:
              instance.delete()
          self.after_delete_instance(instance, dry_run)
docs: Calls :meth:`instance.delete` as long as ``dry_run`` is not set.