Technology

Linux users report Microsoft's Visual Studio Code Snap package isn't actually deleting files

2026-02-04 15:20
548 views
Linux users report Microsoft's Visual Studio Code Snap package isn't actually deleting files

Many users have run out of disk space entirely, and a patch is nowhere in sight.

  1. Pro
  2. Security
Linux users report Microsoft's Visual Studio Code Snap package isn't actually deleting files News By Sead Fadilpašić published 4 February 2026

Many have run out of disk space entirely

When you purchase through links on our site, we may earn an affiliate commission. Here’s how it works.

How to delete your account at Amazon, Facebook, Google or Microsoft
  • Copy link
  • Facebook
  • X
  • Whatsapp
  • Reddit
  • Pinterest
  • Flipboard
  • Threads
  • Email
Share this article 0 Join the conversation Follow us Add us as a preferred source on Google Newsletter Tech Radar Get the TechRadar Newsletter

Sign up for breaking news, reviews, opinion, top tech deals, and more.

Contact me with news and offers from other Future brands Receive email from us on behalf of our trusted partners or sponsors By submitting your information you agree to the Terms & Conditions and Privacy Policy and are aged 16 or over.

You are now subscribed

Your newsletter sign-up was successful

An account already exists for this email address, please log in. Subscribe to our newsletter
  • VS Code Snap package bug on Linux keeps deleted files, clogging hard drives
  • Snap creates separate local Trash folders per version, compounding storage issues
  • No fix yet; users advised to install VS Code via .deb/.rpm or Flatpak instead of Snap

Microsoft’s Visual Studio Code, installed as a Snap package on a Linux device, has a strange bug that keeps all the files users deleted, clogging up hard drives as a result, leading to a myriad of other problems for the users.

The bug was first spotted by a couple of software developers, who found gigabytes of files that were supposed to be deleted. Some of them discovered the bug after completely running out of space on their computers.

The Register notes the flaw was first detected more than a year ago, and a bug report was published in early November 2024. In the report, it was said that the cause of the issue lies in Snap creating a local Trash folder for each VS Code version, instead of simply using the system one.

You may like
  • Cryptocurrencies Linux users targeted as crypto-stealing malware hits Snap packages - here's how to stay safe
  • Ransomware Malicious AI-made extension with ransomware capabilities sneaks on to Microsoft's official VS Code marketplace - so devs beware
  • A man getting angry with his laptop. Windows 11's new year goes from bad to worse as two bugs are crashing apps

Unaddressed code change

What’s more, Snap (a Linux package format and system) also keeps older versions of VS Code after updates, further multiplying the number of local Trash folders and files that should have been deleted, but are still lingering.

On GitHub, a user discovered that the bug stems from an unaddressed code change introduced in early October 2024 which “creates a bogus Trash that’s not the system one.” According to the user, the folder is unmanageable, “carried over from update to update”, and “gradually inflating”.

Low disk space can slow down the system, editors, and compilers, and cause crashes or failed writes.

The Register says neither VS Code nor Snap have a way to manage these folders, but claims it is possible through the command line.

Are you a pro? Subscribe to our newsletterContact me with news and offers from other Future brandsReceive email from us on behalf of our trusted partners or sponsorsBy submitting your information you agree to the Terms & Conditions and Privacy Policy and are aged 16 or over.

Right now, there is no indication that a fix is released, or that it is even in the works. For now, many Linux users avoid the bug by installing VS Code from the official .deb/.rpm packages or using alternatives like Flatpak instead of the Snap version.

Best antivirus software headerThe best antivirus for all budgetsOur top picks, based on real-world testing and comparisons

➡️ Read our full guide to the best antivirus1. Best overall:Bitdefender Total Security2. Best for families:Norton 360 with LifeLock3. Best for mobile:McAfee Mobile Security

Follow TechRadar on Google News and add us as a preferred source to get our expert news, reviews, and opinion in your feeds. Make sure to click the Follow button!

And of course you can also follow TechRadar on TikTok for news, reviews, unboxings in video form, and get regular updates from us on WhatsApp too.

TOPICS Linux Sead FadilpašićSocial Links Navigation

Sead is a seasoned freelance journalist based in Sarajevo, Bosnia and Herzegovina. He writes about IT (cloud, IoT, 5G, VPN) and cybersecurity (ransomware, data breaches, laws and regulations). In his career, spanning more than a decade, he’s written for numerous media outlets, including Al Jazeera Balkans. He’s also held several modules on content writing for Represent Communications.

View More

You must confirm your public display name before commenting

Please logout and then login again, you will then be prompted to enter your display name.

Logout Read more Cryptocurrencies Linux users targeted as crypto-stealing malware hits Snap packages - here's how to stay safe    Ransomware Malicious AI-made extension with ransomware capabilities sneaks on to Microsoft's official VS Code marketplace - so devs beware    A man getting angry with his laptop. Windows 11's new year goes from bad to worse as two bugs are crashing apps    China Malicious Microsoft VSCode AI extensions might have hit over 1.5 million users    Angry woman using a laptop Windows 11 bug breaks entire desktop for some users — luckily there's a fix    Google Antigravity IDE Google’s Antigravity AI wiped out a developer’s drive and then apologized    Latest in Security Coinbase Visa Coinbase reveals insider breach did take place, customer info compromised    Russia Russian hackers are targeting a new Office 365 zero-day, so patch now or face attack    Side view of data analyst pointing with finger at charts on computer monitor while testing protection of computer systems Dangerous new malware targets macOS devices via OpenVSX extensions - here's how to stay safe    Malwarebytes scam checker is now available directly in ChatGPT. Malwarebytes and ChatGPT team up to check all of those suspicious texts, emails, and URLs with one simple phrase    Representation of AI AI agent social media network Moltbook is a security disaster - millions of credentials and other details left unsecured    Trojan Moltbot is now OpenClaw - but watch out, malicious 'skills' are still trying to trick victims into spreading malware    Latest in News Person using Steam Machine PC AMD CEO assures us that Steam Machine is on track to ship 'early this year'    Alexa+ on the web Alexa+ is now available for free to everyone in the US – but be cautious    Man holding a mobile phone with warning notification and spam message icon A devious new Apple Pay scam is hitting millions – here’s how to stay safe    A smartphone showing different family profiles in the Luffu app Fitbit co-founders are launching a new fitness tracking service that caters to the whole family    Samsung Galaxy S21 Ultra review Samsung just quietly ended support for the Galaxy S21 series    How to delete your account at Amazon, Facebook, Google or Microsoft Linux users report Microsoft's Visual Studio Code Snap package isn't actually deleting files    LATEST ARTICLES