code: def deallocate(self):
          
          if self._domain is not None:
              domain_delete(self._domain, self.logger)
          if self._network is not None:
              self._network_delete()
          if self._storage_pool is not None:
              self._storage_pool_delete()
          if self._hypervisor is not None:
              self._hypervisor_delete()
docs: Releases all resources.