Method: properties.delete
HTTP 请求
DELETE https://analyticsadmin.googleapis.com/v1beta/{name=properties/*}
网址采用 gRPC 转码语法。
路径参数
参数 |
name |
string
必需。要软删除的媒体资源的名称。格式:properties/{property_id} 示例:“properties/1000”
|
响应正文
如果成功,则响应正文包含一个 Property
实例。
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/analytics.edit
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-01-14。
[null,null,["最后更新时间 (UTC):2025-01-14。"],[[["This API allows you to mark a Google Analytics 4 property as soft-deleted, essentially moving it to the trash."],["Soft-deleted properties can be restored through the Trash Can UI before they are permanently purged."],["The API requires a `DELETE` request with the property ID specified in the path parameter."],["An empty request body is necessary, and a successful deletion returns the `Property` object."],["To use this API, you need the `https://www.googleapis.com/auth/analytics.edit` authorization scope."]]],["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"]]