Deleting a profile

Currently, you can only delete profiles interactively with the following command:

  1. ydb config profile delete <profile_name>

Deleting a profile - 图1

where <profile_name> is the profile name.

The YDB CLI will request confirmation to delete the profile:

  1. Profile "<profile_name>" will be permanently removed. Continue? (y/n):

Deleting a profile - 图2

Choose y (Yes) to delete the profile.

Example

Deleting the mydb1 profile:

  1. $ ydb config profile delete mydb1
  2. Profile "mydb1" will be permanently removed. Continue? (y/n): y
  3. Profile "mydb1" was removed.

Deleting a profile - 图3

Deleting a profile without interactive input

Although this mode is not supported by the YDB CLI, if necessary, you can use input redirection in your OS to automatically respond y to the request to confirm the deletion:

  1. echo y | ydb config profile delete my_profile

Deleting a profile - 图4

The efficiency of this method is not guaranteed in any way.