Method: properties.delete
Oznacza docelową usługę jako usunięta częściowo (np. „przeniesiona do kosza”) i zwraca ją.
Ten interfejs API nie zawiera metody przywracania właściwości przeniesionych do kosza. Można je jednak przywrócić za pomocą interfejsu kosza.
Jeśli usługi nie zostaną przywrócone przed upływem terminu ważności, usługa i wszystkie jej komponenty (np. linki Google Ads, strumienie, powiązania dostępu) zostaną trwale usunięte. https://support.google.com/analytics/answer/6154772
Zwraca błąd, jeśli nie można znaleźć docelowego elementu.
Żądanie HTTP
DELETE https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*}
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
name |
string
Wymagane. Nazwa usługi, którą chcesz usunąć w łagodny sposób. Format: „usługi/{identyfikator_usługi}” Przykład: „usługi/1000”
|
Treść żądania
Treść żądania musi być pusta.
Treść odpowiedzi
W przypadku powodzenia treść odpowiedzi obejmuje wystąpienie elementu Property
.
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/analytics.edit
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-01-14 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]