analyticsadmin.properties.delete
Marks an Analytics property as trashed and returns its deleted state; restore it via Trash Can before expiration to prevent permanent purge.
Instructions
Marks target Property as soft-deleted (ie: "trashed") and returns it. This API does not have a method to restore soft-deleted properties. However, they can be restored using the Trash Can UI. If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found [HTTP DELETE] — removes the resource; irreversible unless the API documents a trash/undo flow; refused under --readonly safety profiles. Returns the post-delete resource state (or empty) as JSON — request bodies are built from the typed parameters (typed flags win over the params map), or read whole from body_file Siblings over the same resource: acknowledgeUserDataCollection, create, get, getDataRetentionSettings, list, patch, runAccessReport, updateDataRetentionSettings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | [URL path segment] Required. The name of the Property to soft-delete. Format: properties/{property_id} Example: "properties/1000" | |
| query | No | Extra KEY=VALUE query pairs for endpoints whose parameters Discovery does not describe. | |
| params | No | Parameter map merged into the request; typed parameters win. | |
| dry_run | No | Return the request that would be sent, without sending it. | |
| body_file | No | Read the request body from this file ('-' for stdin) instead of building one from the parameters. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| parent | No | ||
| account | No | ||
| timeZone | No | ||
| createTime | No | ||
| deleteTime | No | ||
| expireTime | No | ||
| updateTime | No | ||
| displayName | No | ||
| currencyCode | No | ||
| propertyType | No | ||
| serviceLevel | No | ||
| industryCategory | No |