Usage
m365 teams cache remove
Description
Removes the Microsoft Teams client cache
Options
| Option |
Description |
--confirm |
Don't prompt for confirmation |
Additional Info
Raised from #3172
The command should implement the official guidance in the Microsoft Docs article, Clear the Teams client cache for both Windows and MacOS, therefore the command should automatically detect the environment operating system on behalf of the user.
When the command is executed, the user should be prompted with a message telling the user what will happen when the prompt is confirmed, example 👇 unless when the --confirm option is used.
> m365 teams cache remove
> Are you sure you want to remove all folders and files from the <location> directory?
If the command is executed within the CLI Docker container, we should return the message Unsupported environment. We can detect if the command is executed in the Docker container by looking for the presence of the CLIMICROSOFT365_ENVenvironment variable with the value docker.
Usage
m365 teams cache removeDescription
Removes the Microsoft Teams client cache
Options
--confirmAdditional Info
Raised from #3172
The command should implement the official guidance in the Microsoft Docs article, Clear the Teams client cache for both Windows and MacOS, therefore the command should automatically detect the environment operating system on behalf of the user.
When the command is executed, the user should be prompted with a message telling the user what will happen when the prompt is confirmed, example 👇 unless when the
--confirmoption is used.If the command is executed within the CLI Docker container, we should return the message
Unsupported environment. We can detect if the command is executed in the Docker container by looking for the presence of theCLIMICROSOFT365_ENVenvironment variable with the valuedocker.