:doc:`ServiceCatalog <../../servicecatalog>` / Client / delete_portfolio_share

**********************
delete_portfolio_share
**********************



.. py:method:: ServiceCatalog.Client.delete_portfolio_share(**kwargs)

  

  Stops sharing the specified portfolio with the specified account or organization node. Shares to an organization node can only be deleted by the management account of an organization or by a delegated administrator.

   

  Note that if a delegated admin is de-registered, portfolio shares created from that account are removed.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DeletePortfolioShare>`_  


  **Request Syntax**
  ::

    response = client.delete_portfolio_share(
        AcceptLanguage='string',
        PortfolioId='string',
        AccountId='string',
        OrganizationNode={
            'Type': 'ORGANIZATION'|'ORGANIZATIONAL_UNIT'|'ACCOUNT',
            'Value': 'string'
        }
    )
    
  :type AcceptLanguage: string
  :param AcceptLanguage: 

    The language code.

     

    
    * ``jp`` - Japanese
     
    * ``zh`` - Chinese
    

    

  
  :type PortfolioId: string
  :param PortfolioId: **[REQUIRED]** 

    The portfolio identifier.

    

  
  :type AccountId: string
  :param AccountId: 

    The Amazon Web Services account ID.

    

  
  :type OrganizationNode: dict
  :param OrganizationNode: 

    The organization node to whom you are going to stop sharing.

    

  
    - **Type** *(string) --* 

      The organization node type.

      

    
    - **Value** *(string) --* 

      The identifier of the organization node.

      

    
  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'PortfolioShareToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **PortfolioShareToken** *(string) --* 

        The portfolio share unique identifier. This will only be returned if delete is made to an organization node.

        
  
  **Exceptions**
  
  *   :py:class:`ServiceCatalog.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`ServiceCatalog.Client.exceptions.InvalidParametersException`

  
  *   :py:class:`ServiceCatalog.Client.exceptions.OperationNotSupportedException`

  
  *   :py:class:`ServiceCatalog.Client.exceptions.InvalidStateException`

  