Azure / Azure/azure-cli

`az extension add` doesn't delete the temporary folder after it succeeds

Open
#18,103 1 comment 0 reactions 1 assignee Claimed by @jiasli View on GitHub
Extensions feature-request
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Describe the bug**

`az extension add` doesn't delete the temporary folder after it succeeds.

**To Reproduce**
```
az extension add --upgrade -n application-insights
```

The temporary folder and `whl` file still exists at `C:\Users\username\AppData\Local\Temp\tmpxxxxxxxx\application_insights-0.1.13-py2.py3-none-any.whl`

**Expected behavior**

The temporary folder and `whl` file should be deleted, even though it doesn't cause any negative effect except leaving some trash behind.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.