Method: accounts.delete
Das Zielkonto wird als vorläufig gelöscht (d. h. „im Papierkorb“) markiert und zurückgegeben.
Diese API bietet keine Methode zum Wiederherstellen von Soft-Deleted-Konten. Sie können sie jedoch über die Papierkorb-Benutzeroberfläche wiederherstellen.
Wenn die Konten nicht vor Ablauf der Frist wiederhergestellt werden, werden das Konto und alle untergeordneten Ressourcen (z. B. Properties, 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/v1beta/{name=accounts/*}
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
name |
string
Erforderlich. Der Name des Kontos, das semi-inaktiv gesetzt werden soll. Format: „accounts/{account}“ Beispiel: „accounts/100“
|
Anfragetext
Der Anfragetext muss leer sein.
Antworttext
Wenn der Vorgang erfolgreich abgeschlossen wurde, ist der Antworttext ein leeres JSON-Objekt.
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)."],[[["Marks an account as soft-deleted, effectively sending it to the trash but allowing for restoration before permanent deletion."],["Permanently deletes the account and all associated resources after a certain expiration time if not restored."],["Requires the `analytics.edit` OAuth scope for authorization."],["Uses a `DELETE` request to the specified endpoint with the account ID as a path parameter."],["The request body should be empty, and a successful operation will return an empty response body."]]],["This API endpoint soft-deletes an account by its name using a `DELETE` request to `https://analyticsadmin.googleapis.com/v1beta/{name=accounts/*}`. The `name` path parameter (e.g., \"accounts/100\") is required. The request body must be empty. Upon successful deletion, it returns an empty JSON object. The operation is irreversible via the API, requiring UI restoration before a certain time to prevent permanent data loss. It needs `https://www.googleapis.com/auth/analytics.edit` authorization. An error is returned if the target account is not found.\n"]]