Cannot delete AWS connection settings in Purview

Miku Sugio 0 Reputation points
2025-11-20T00:59:06.9633333+00:00

Hi.

After I testing the connection of Azure S3 to Purview, I am trying to delete the connection settings (name: AmazonS3Connection-CXY).
However, I cannot delete it due to the following error. ※The ID changes each time.

Error Message:Request failed with status code 400 Request ID: e17d9f31-1efa-41a1-882d-6663d353c609 Failed to delete entity because it is being referenced by other entities, correlationId 875b7072-f8ff-4c77-88bb-3442cd62dcde.

Screenshot_1

Are there any settings that I should delete beforehand?
It seems that the only settings currently left are the connection(picture's error), data source, credentials(both are referenced by amazons3connection-cxy), and ruleset scan (delete button grayout).


I contacted Purview Support regarding this issue, but they said it was an Azure-side problem and provided the following steps.

Issue Definition: Purview encounters reference errors when deleting AWS connections Resolution: As we are a troubleshooting team, this issue falls outside our support scope. We recommend contacting the Azure team to create a new support ticket.

For best-effort support, please attempt the following steps: Check Locations in Azure Portal 1.Access Azure Data Factory or Synapse workspace: ・Navigate to Azure Portal → Your Data Factory (or Synapse) resource → Author & Monitor. 2.Review Associated Services: ・In the Manage section, open Associated Services. ・Search for AmazonS3Connection-CXY to identify other associated services referencing it. 3.Check datasets and pipelines: ・Go to Author → Datasets and Pipelines. ・Use the search bar to find any datasets or pipelines referencing AmazonS3Connection-CXY. 4.Advanced actions: Using ARM templates or REST API: ・Export the Data Factory ARM template from Manage → Export ARM template. ・Search the JSON file for “AmazonS3Connection-CXY” to identify all dependencies.

However, in this environment, Azure Data Factory had never been used before,
and the quoted steps did not find AmazonS3Connection-CXY.

Microsoft Security | Microsoft Purview
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Adam Zachary 2,025 Reputation points
    2025-11-20T21:20:29.62+00:00

    A while ago I had this come up for a customer who was testing AWS S3 connections in Purview, and we ran into almost the exact same error when trying to delete the connection. Even though it looked like all the related items were already removed, Purview still refused to delete it because something in the metadata graph was still referencing that connection behind the scenes.

    What actually helped was removing every object that could possibly depend on it, including the data source, the credential, and any scan configurations or lineage items tied to it. In our case, the delete button was also greyed out for the scan ruleset, and we had to unlink it first. After cleaning those pieces up and giving Purview a few minutes to sync its internal metadata, the connection finally deleted without errors.

    The message you’re seeing simply means Purview believes something still depends on that connection, even if it’s invisible in the UI. Clearing all dependencies and letting metadata refresh usually resolves it, but if it doesn’t, you’ll need Azure support to clear the orphaned reference on the backend.


  2. VRISHABHANATH PATIL 1,820 Reputation points Microsoft External Staff Moderator
    2025-12-03T06:11:30.85+00:00

    Hi @Miku Sugio

    Thanks for sharing your updates, below are few detailed steps that may help you to mitigate the issue -

    The “Delete” being greyed out on a Scan rule set is because that rule set is still assigned to one or more scans. You don’t have to recreate anything; you just need to unassign the rule set from those scans first, then the delete will light up.

    How to Unlink and Delete (UI Steps)

    • Identify scans using the rule set
      • Go to Data Map → Source Management → Data Sources.
        • Open your Amazon S3 data source and check the Scans tab.
        • Unassign the rule set
          • Edit each scan that references the custom rule set.
            • Change the rule set to System default (or any other non‑custom rule set).
              • Save changes.
              • Delete scans (optional but recommended)
                • If these scans were only for testing, delete them to avoid hidden references.
                • Delete the rule set
                  • Go to Scan Rule Sets in Source Management.
                    • The Delete button should now be active—remove the rule set.
                    • Complete cleanup if needed
                      • Delete the data source, credential, and finally the connection (AmazonS3Connection‑CXY).

    Always unlink the rule set from scans first. Once no scans reference it, the delete button becomes available.

    Microsoft KB Article

    Refer to: https://learn.microsoft.com/en-us/azure/purview/manage-scan-rule-sets This article explains why dependencies block deletion and the correct sequence to remove scans, rule sets, and connections.

    0 comments No comments

  3. VRISHABHANATH PATIL 1,820 Reputation points Microsoft External Staff Moderator
    2025-12-04T05:32:35.04+00:00

    Hi @Miku Sugio

    I hope you had a chance to review the information shared earlier, and I hope this information has been helpful! If you still have questions, please let us know what is needed in the comments so the question can be answered.

    0 comments No comments

  4. VRISHABHANATH PATIL 1,820 Reputation points Microsoft External Staff Moderator
    2025-12-05T03:35:12.5733333+00:00

    Hi @Miku Sugio

    If this solution helped resolve your issue, please consider clicking ‘Accept Answer’ or giving it an upvote to help others find it easily.

    0 comments No comments

  5. Miku Sugio 0 Reputation points
    2025-12-05T07:11:10.29+00:00

    Hi,@VRISHABHANATH PATIL

    I checked console again, but there were no custom rule sets and scans...User's image

    User's image

    Also, I tried deleting again in this order.

    Delete the data source, credential, and finally the connection (AmazonS3Connection‑CXY).

    However, the same error code appeared as before.

    Request failed with status code 400 Request ID: c704446f-7390-410c-8964-e5e03f9a4ddd The document cannot be deleted since it is referenced by amazons3connection-cxy.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.