def METHOD_NAME(self):
    factory_physical.HostFactory.FACTORY_FOR.objects.all().delete()
    Instance.objects.all().delete()
    if not Database.objects.filter(databaseinfra_id=self.databaseinfra.id):
        self.databaseinfra.delete()
    if self._driver_client:
        self.driver_client.close()