Google 애널리틱스용 MCP 서버를 사용해 보세요.
GitHub에서 설치하고
공지사항에서 자세한 내용을 확인하세요.
Method: properties.delete
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
타겟 속성을 소프트 삭제 (예: '휴지통')로 표시하고 반환합니다.
이 API에는 소프트 삭제된 속성을 복원하는 메서드가 없습니다. 하지만 휴지통 UI를 사용하여 복원할 수 있습니다.
만료 시간 전에 속성이 복원되지 않으면 속성과 모든 하위 리소스 (예: GoogleAdsLinks, Streams, AccessBindings)가 영구적으로 삭제됩니다. https://support.google.com/analytics/answer/6154772
타겟을 찾을 수 없는 경우 오류를 반환합니다.
HTTP 요청
DELETE https://analyticsadmin.googleapis.com/v1beta/{name=properties/*}
URL은 gRPC 트랜스코딩 문법을 사용합니다.
경로 매개변수
매개변수 |
name |
string
필수 항목입니다. 조용히 삭제할 속성의 이름입니다. 형식: properties/{property_id} 예: 'properties/1000'
|
응답 본문
성공한 경우 응답 본문에 Property
의 인스턴스가 포함됩니다.
승인 범위
다음 OAuth 범위가 필요합니다.
https://www.googleapis.com/auth/analytics.edit
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[[["\u003cp\u003eThis API allows you to mark a Google Analytics 4 property as soft-deleted, essentially moving it to the trash.\u003c/p\u003e\n"],["\u003cp\u003eSoft-deleted properties can be restored through the Trash Can UI before they are permanently purged.\u003c/p\u003e\n"],["\u003cp\u003eThe API requires a \u003ccode\u003eDELETE\u003c/code\u003e request with the property ID specified in the path parameter.\u003c/p\u003e\n"],["\u003cp\u003eAn empty request body is necessary, and a successful deletion returns the \u003ccode\u003eProperty\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eTo use this API, you need the \u003ccode\u003ehttps://www.googleapis.com/auth/analytics.edit\u003c/code\u003e authorization scope.\u003c/p\u003e\n"]]],["This API marks a Property as soft-deleted via a DELETE HTTP request to `https://analyticsadmin.googleapis.com/v1beta/{name=properties/*}`. The `name` path parameter, in the format \"properties/{property_id}\", specifies the target Property. The request body must be empty. A successful operation returns the deleted Property. Soft-deleted properties can be restored via the Trash Can UI, and permanently purged after expiration. Authorization requires the `https://www.googleapis.com/auth/analytics.edit` scope. An error is returned if the property is not found.\n"],null,["# Method: properties.delete\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nMarks target Property as soft-deleted (ie: \"trashed\") and returns it.\n\nThis API does not have a method to restore soft-deleted properties. However, they can be restored using the Trash Can UI.\n\nIf the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. \u003chttps://support.google.com/analytics/answer/6154772\u003e\n\nReturns an error if the target is not found.\n\n### HTTP request\n\n`DELETE https://analyticsadmin.googleapis.com/v1beta/{name=properties/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|-------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. The name of the Property to soft-delete. Format: properties/{property_id} Example: \"properties/1000\" |\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 [Property](/analytics/devguides/config/admin/v1/rest/v1beta/properties#Property).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/analytics.edit`"]]