Method: properties.delete
Die Ziel-Property wird als vorläufig gelöscht (d. h. „im Papierkorb“) markiert und zurückgegeben.
Diese API bietet keine Methode zum Wiederherstellen vorläufig gelöschter Properties. Sie können sie jedoch über die Papierkorb-Benutzeroberfläche wiederherstellen.
Wenn die Properties nicht vor Ablauf der Frist wiederhergestellt werden, werden die Property und alle untergeordneten Ressourcen (z. B. GoogleAdsLinks, Streams, AccessBindings) endgültig gelöscht. https://support.google.com/analytics/answer/6154772
Gibt einen Fehler zurück, wenn das Ziel nicht gefunden wird.
HTTP-Anfrage
DELETE https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*}
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
name |
string
Erforderlich. Der Name der Property, die nicht vollständig gelöscht werden soll. Format: properties/{property_id} Beispiel: „properties/1000“
|
Anfragetext
Der Anfragetext muss leer sein.
Antworttext
Wenn der Vorgang erfolgreich abgeschlossen wurde, enthält der Antworttext eine Instanz von Property
.
Autorisierungsbereiche
Erfordert den folgenden OAuth-Bereich:
https://www.googleapis.com/auth/analytics.edit
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-01-14 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-01-14 (UTC)."],[[["This API allows for the soft deletion of a Google Analytics 4 property, essentially moving it to the trash."],["Soft-deleted properties and their associated resources are permanently deleted after a period; they can be restored before that time via the Trash Can UI."],["The API requires a DELETE request with the property ID specified in the path, and an empty request body."],["Upon successful execution, the API returns the soft-deleted Property object in the response body."],["To use this API, you need the `https://www.googleapis.com/auth/analytics.edit` OAuth scope."]]],["This API soft-deletes a specified property identified by its name (e.g., \"properties/1000\") via a `DELETE` HTTP request. The request body must be empty. Upon success, it returns the soft-deleted Property. Soft-deleted properties can be restored through the Trash Can UI but will be permanently purged if not restored before their expiration time. The required authorization scope is `https://www.googleapis.com/auth/analytics.edit`. An error is returned if the property is not found.\n"]]