code: def detach_storage_group(self, storage_group):
          
          body = {'storage-group-uri': storage_group.uri}
          self.manager.session.post(
              self.uri + '/operations/detach-storage-group', body)
docs: Detach a :term:`storage group` from this partition.
  
          This will cause the :term:`storage volumes <storage volume>` of the
          storage group to be detached from the partition, removing any
          :term:`virtual storage resource` objects that had been created upon
          attachment.
  
          A storage group can be detached from a partition regardless of its
          fulfillment state. The fulfillment state of its storage volumes
          changes as volumes are discovered by DPM.
  
          The CPC must have the "dpm-storage-management" feature enabled.
  
          Authorization requirements:
  
          * Object-access permission to this partition.
          * Task permission to the "Partition Details" task.
  
          Parameters:
  
            storage_group (:class:`~zhmcclient.StorageGroup`):
              Storage group to be detached. The storage group must currently
              be attached to this partition.
  
          Raises:
  
            :exc:`~zhmcclient.HTTPError`
            :exc:`~zhmcclient.ParseError`
            :exc:`~zhmcclient.AuthError`
            :exc:`~zhmcclient.ConnectionError`