Help Center/ ModelArts/ DevEnviron/ ModelArts CLI Command Reference/ ma-cli Image Building Command/ Deregistering a Registered Image from ModelArts Image Management
Updated on 2023-11-21 GMT+08:00

Deregistering a Registered Image from ModelArts Image Management

Run the ma-cli image unregister command to deregister a registered image from ModelArts.

$ ma-cli image unregister -h
Usage: ma-cli image unregister [OPTIONS]

  Unregister image from ModelArts.

  Example:

  # Unregister image
  ma-cli image unregister --image-id=xx

  # Unregister image and delete it from swr
  ma-cli image unregister --image-id=xx -d

Options:
  -i, --image-id TEXT     Unregister image details by image id.  [required]
  -d, --delete-swr-image  Delete the image from swr.
  -C, --config-file PATH  Configure file path for authorization.
  -D, --debug             Debug Mode. Shows full stack trace when error occurs.
  -P, --profile TEXT      CLI connection profile to use. The default profile is "DEFAULT".
  -h, -H, --help          Show this message and exit.
Table 1 Parameters

Parameter

Type

Mandatory

Description

-i / -image-id

String

Yes

ID of the image to be deregistered

-d / --delete-swr-image

Bool

No

Whether to delete a deregistered SWR image. This function is disabled by default.

Examples

Deregister a registered image from ModelArts image management.

ma-cli image unregister --image-id=xx