Is it safe to delete bin / obj (.NET)?

<project>/bin and obj · Safe to delete

What it is

Build output of a .NET project.

Can you delete it?

Yes, it is rebuilt automatically. dotnet build rebuilds them.

How to clean it safely

  1. Run: dotnet clean
  2. Or delete bin and obj.

Step-by-step guide: Developer caches on a Mac →

Questions

Is it safe to delete <project>/bin and obj?

Yes, it is rebuilt automatically. dotnet build rebuilds them.

Let the raccoon do it, safely

Junk Raccoon finds this clutter for you, shows every file first, and keeps a one-click way back. Free to download, no account, no ads.

Download for Mac