How to Force Remove a Snap App After "file changed as we read it" Error

Issue

When trying to remove the TradingView Snap app (or any other app) on Pop_OS / Ubuntu / Debian using sudo snap remove tradingview, you got this error:

error: cannot perform the following tasks:  
- Save data of snap "tradingview" in automatic snapshot set #5 (cannot create archive:  
tar: 66/.config/TradingView/Cache/Cache_Data: file changed as we read it)  

Probable Cause

The Snap removal process failed because TradingView was still running in the background, causing its cache files to change while Snap tried to create a backup (snapshot) before uninstalling.

Solution

To cleanly remove the Snap app, you need to fully close TradingView and then remove the Snap package. If the error persists, use the --purge flag to skip the snapshot step.

 
# 1. Make sure TradingView is not running
ps aux | grep -i tradingview killall -s KILL TradingView


# 2. Try removing the Snap app again
sudo snap remove tradingview


# 3. If you still get the error, force removal without a snapshot sudo snap remove --purge tradingview

After this, TradingView and all its Snap data will be fully removed from your system.