Deletes a single Database Migration Service connection profile. A connection profile can only be deleted if it is not in use by any active migration jobs.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-28 UTC."],[[["\u003cp\u003eThis webpage details the process for deleting a Database Migration Service connection profile, which can only be done if it is not in use by any migration jobs.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request to delete a connection profile is a DELETE request made to a specific URL containing the profile's name as a path parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe request supports two query parameters: \u003ccode\u003erequestId\u003c/code\u003e for request identification and \u003ccode\u003eforce\u003c/code\u003e to enforce deletion even for CloudSQL replica databases.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires an empty body and successful requests return an \u003ccode\u003eOperation\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eDeleting connection profile requires \u003ccode\u003edatamigration.connectionprofiles.delete\u003c/code\u003e IAM permissions and the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.connectionProfiles.delete\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Examples](#examples)\n- [Try it!](#try-it)\n\nDeletes a single Database Migration Service connection profile. A connection profile can only be deleted if it is not in use by any active migration jobs.\n\n### HTTP request\n\n`DELETE https://datamigration.googleapis.com/v1alpha2/{name}`\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/database-migration/docs/reference/rest/Shared.Types/ListOperationsResponse#Operation).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/)."]]