API Deletion (ssd api-management delete api)

The ssd api-management delete api command allows you to delete an API from Sensedia API Platform.

You can use the ssd api-management delete api command or its shortened version ssd apim delete api.

Usage

The ssd api-management delete api command can be followed by specific flags, as in the examples below:

ssd api-management delete api [flags]

If no flag is specified, the interactive mode will be activated.

# Deletes an API
$ ssd (api-management | apim) delete api --id 111
$ ssd (api-management | apim) delete api --name "My API" --version "1.0.0"


# Deletes an API skipping the confirmation step
$ ssd (api-management | apim) delete api --id 111 -y
$ ssd (api-management | apim) delete api --name "My API" --version "1.0.0" -y

Available Flags

Flag

Type

Description

-h, --help

Displays help for the command

-i, --id

int

API’s ID

-n, --name

string

API’s name

-v, --version

string

API’s version

-y, --yes

Skips the confirmation step

Global Flags

Flag

Type

Description

-c, --config

string

Configuration file (default: $HOME/.sensedia/config.json)

--profile

string

The configuration profile you want to use (default: "default")

--verbose

Lists all requests made by the command. It is possible to store this information in a TXT file instead of displaying it on the terminal. E.g.: $ ssd (api-management | apim) list apis --verbose 2> log.txt

Declarative Mode

It is possible to delete a Rest API using a .yaml file with the declarative mode. Learn more.
Thanks for your feedback!
EDIT

Share your suggestions with us!
Click here and then [+ Submit idea]