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 API endpoint deletes a single Database Migration Service connection profile, provided it's not actively used by any migration jobs.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ename\u003c/code\u003e parameter, which is required, specifies the connection profile to be deleted and also requires specific IAM permissions.\u003c/p\u003e\n"],["\u003cp\u003eThe request body for this DELETE operation must be empty, and there is the option to add a \u003ccode\u003erequestId\u003c/code\u003e query parameter to help with request identification.\u003c/p\u003e\n"],["\u003cp\u003eDeletion can be forced for CloudSQL connection profiles using the \u003ccode\u003eforce\u003c/code\u003e query parameter, which will also delete the replica database.\u003c/p\u003e\n"],["\u003cp\u003eUpon success, the API returns an \u003ccode\u003eOperation\u003c/code\u003e object, and the operation requires \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/v1/{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/)."]]