← 返回命令列表

Linux command

crane-delete 命令

安全

复制后可按需替换文件名、目录或参数。

常用示例

Delete an image by tag

crane delete [registry.example.com/repo:tag]

Delete an image by digest

crane delete [registry.example.com/repo]@[sha256:abc123...]

Delete with verbose output

crane delete -v [registry.example.com/repo:tag]

说明

crane delete removes an image manifest from a container registry by tag or digest reference. The image reference must include the full registry path. When deleting by tag, the registry removes the tag-to-manifest mapping. When deleting by digest, the manifest itself is removed. Use with caution as deletion may be permanent depending on registry configuration and policies. This command sends an HTTP DELETE request to the registry's manifest endpoint. It requires appropriate authentication and authorization for the target repository.

参数

-v, --verbose
Enable verbose logging.
--platform _PLATFORM_
Specifies the platform in the form os/arch (e.g., linux/amd64).
--insecure
Allow image references to be fetched without TLS.

FAQ

What is the crane-delete command used for?

crane delete removes an image manifest from a container registry by tag or digest reference. The image reference must include the full registry path. When deleting by tag, the registry removes the tag-to-manifest mapping. When deleting by digest, the manifest itself is removed. Use with caution as deletion may be permanent depending on registry configuration and policies. This command sends an HTTP DELETE request to the registry's manifest endpoint. It requires appropriate authentication and authorization for the target repository.

How do I run a basic crane-delete example?

Run `crane delete [registry.example.com/repo:tag]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -v, --verbose do in crane-delete?

Enable verbose logging.