Anuncio: Todos los proyectos no comerciales registrados para usar Earth Engine antes del
15 de abril de 2025 deben
verificar su elegibilidad no comercial para mantener el acceso a Earth Engine.
Method: projects.assets.delete
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Solicitud HTTP
DELETE https://earthengine.googleapis.com/v1beta/{name=projects/*/assets/**}
La URL usa la sintaxis de la transcodificación gRPC.
Parámetros de ruta de acceso
Parámetros |
name |
string
Es obligatorio. Es el nombre del activo que se borrará. name tiene el formato "projects/*/assets/**" (p.ej., "projects/earthengine-legacy/assets/users/[USER]/[ASSET]"). Todos los recursos que pertenecen al usuario están en el proyecto "earthengine-legacy" (p.ej., "projects/earthengine-legacy/assets/users/foo/bar"). Todos los demás recursos se encuentran en el proyecto "earthengine-public" (p.ej., "projects/earthengine-public/assets/LANDSAT").
La autorización requiere el siguiente permiso IAM en el recurso especificado name :
earthengine.assets.delete
|
Cuerpo de la solicitud
El cuerpo de la solicitud debe estar vacío.
Cuerpo de la respuesta
Si se ejecuta correctamente, el cuerpo de la respuesta es un objeto JSON vacío.
Permisos de autorización
Se necesita uno de los siguientes permisos de OAuth:
https://www.googleapis.com/auth/earthengine
https://www.googleapis.com/auth/cloud-platform
Para obtener más información, consulta OAuth 2.0 Overview.
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2025-07-25 (UTC)
[null,null,["Última actualización: 2025-07-25 (UTC)"],[[["\u003cp\u003ePermanently deletes an Earth Engine asset using an HTTP DELETE request.\u003c/p\u003e\n"],["\u003cp\u003eRequires specifying the asset's full name in the URL, including the project ("earthengine-legacy" for user-owned assets or "earthengine-public" for others).\u003c/p\u003e\n"],["\u003cp\u003eNeeds appropriate IAM permission (\u003ccode\u003eearthengine.assets.delete\u003c/code\u003e) for the specified asset.\u003c/p\u003e\n"],["\u003cp\u003eAn empty request body is required, and a successful deletion results in an empty response body.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization can be done with either the \u003ccode\u003eearthengine\u003c/code\u003e or \u003ccode\u003ecloud-platform\u003c/code\u003e OAuth scopes.\u003c/p\u003e\n"]]],["To delete an asset, a `DELETE` request is sent to the specified URL, which follows gRPC Transcoding syntax. The `name` path parameter, formatted as \"projects/*/assets/**\", is required and indicates the asset to be deleted. Authorization requires the `earthengine.assets.delete` IAM permission. The request body should be empty, and a successful deletion returns an empty JSON object. Either of the mentioned OAuth scopes is needed for authorization.\n"],null,["# Method: projects.assets.delete\n\nDeletes an asset.\n\n### HTTP request\n\n`DELETE https://earthengine.googleapis.com/v1beta/{name=projects/*/assets/**}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. The name of the asset to delete. `name` is of the format \"projects/\\*/assets/\\*\\*\" (e.g., \"projects/earthengine-legacy/assets/users/\\[USER\\]/\\[ASSET\\]\"). All user-owned assets are under the project \"earthengine-legacy\" (e.g., \"projects/earthengine-legacy/assets/users/foo/bar\"). All other assets are under the project \"earthengine-public\" (e.g., \"projects/earthengine-public/assets/LANDSAT\"). Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `earthengine.assets.delete` |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body is an empty JSON object.\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/earthengine`\n- `\n https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]