Method: projects.assets.delete
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
درخواست HTTP
DELETE https://earthengine.googleapis.com/v1beta/{name=projects/*/assets/**}
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
پارامترها |
---|
name | string مورد نیاز. نام دارایی برای حذف. name از قالب "projects/*/assets/**" است (به عنوان مثال، "projects/earthengine-legacy/assets/users/[USER]/[ASSET]"). همه داراییهای متعلق به کاربر تحت پروژه "میراث زمینی" قرار دارند (به عنوان مثال، "پروژهها/جنبه-میراث/دارایی/کاربران/foo/bar"). همه دارایی های دیگر تحت پروژه "Earthengine-Public" هستند (به عنوان مثال، "projects/earthengine-public/assets/LANDSAT"). مجوز نیاز به مجوز IAM زیر در name منبع مشخص شده دارد: -
earthengine.assets.delete
|
درخواست بدن
بدنه درخواست باید خالی باشد.
بدن پاسخگو
در صورت موفقیت آمیز بودن، بدنه پاسخ یک شی JSON خالی است.
محدوده مجوز
به یکی از حوزه های OAuth زیر نیاز دارد:
-
https://www.googleapis.com/auth/earthengine
-
https://www.googleapis.com/auth/cloud-platform
برای اطلاعات بیشتر، بهOAuth 2.0 Overview .
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\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)."]]