Delete an Asset in Purview using REST API

Sukumar Vinnakota 311 Reputation points
2021-05-27T15:27:31.95+00:00

I have a service principle created and has an RBAC role of Purview Data Curator and Purview Data Source Administrator. I have referred the link https://learn.microsoft.com/en-us/azure/purview/tutorial-using-rest-apis#use-the-postman-client-to-call-the-rest-apis and configured my Postman setup.

I want to delete Assets which are present in Purview. what is the REST API URL for deleting the Assets in Purview and what will be the objects that should be passed in BODY and HEADER to delete an asset.

Microsoft Purview
Microsoft Purview
A Microsoft data governance service that helps manage and govern on-premises, multicloud, and software-as-a-service data. Previously known as Azure Purview.
931 questions
0 comments No comments
{count} votes

Accepted answer
  1. PRADEEPCHEEKATLA-MSFT 77,081 Reputation points Microsoft Employee
    2021-05-28T09:54:50.05+00:00

    Hello @Sukumar Vinnakota ,

    Thanks for question and using MS Q&A platform.

    Steps to delete an Asset in Purview using REST API:

    From this document, follow the steps to Use the Postman client to call the REST APIs.

    Step1: Get Token

     POST https://login.microsoftonline.com/<your-tenant-id>/oauth2/token  
    

    100555-image.png

    Step2: Delete an Entity

    Note: In Authorization section, select TYPE as Bearer Token and paste the token which you copied in step1.

    DELETE https://{{catalog_end_point}}/api/atlas/v2/entity/uniqueAttribute/type/<entity_type>?attr%3AqualifiedName=<entity_qualified_name>  
    

    100525-image.png

    Hope this helps. Do let us know if you any further queries.

    ---------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


0 additional answers

Sort by: Most helpful