Updated on 2023-10-19 GMT+08:00

remove alias

remove alias is used to delete a specified alias.

You can run remove alias -h or remove alias --help to view the documentation.

Parameter Parsing

Table 1 Parameter description

Parameter Name

Abbreviation

Required in YAML

Required in CLI

Description

region

-

No

Yes

Region

function-name

-

No

Yes

Service name

alias-name

-

Yes

Yes

Alias

This command also supports some global parameters, such as -a/--access and --debug. For details, see Global Parameters of Serverless Devs.

Examples

  • If you have a resource description file (YAML), run s remove alias --alias-name aliasName to delete a specified alias.
  • If you use CLI (without a YAML resource description file), specify the region and name of the service. For example, s cli fgs remove alias --region cn-north-4 --function-name fgs-test --alias-name pre.
Execution result of the preceding command:
Alias [pre] deleted.