Skip to content

Cleanup for extensions which are removed/uninstalled #8134

@ishitam8

Description

@ishitam8

Is your feature request related to a problem? Please describe.
Our extension creates and stores some configurations by creating a folder in config directory of azure CLI. So, a folder called <extension_name> is created in $HOME/.azure directory.
When user triggers the command 'az extension remove -n <extension_name>' , we would like to delete the folder created in config directory as well.

Currently, remove extension command doesn't seem to do this. I can see that it removes the extension_name folder from 'cliextensions' directory.

Is there a way to clear extension specific configs before removing the extension?

Metadata

Metadata

Labels

Extensions`az extension` commands or extension infrastructure

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions