There are many temporary files generated during the computer use process.

Temporary cab files are such ones.

You might find these files occupy a large storage room and wonder how to delete temporary cab files.

How to Create Zip Files Using Command Prompt?

Read this post onMiniToolto learn several methods for deleting them.

This section will provide you with the basic information.

The cabinet format supports lossless data compression and embedded digital certificates used for maintaining archive integrity.

delete the cab file

There are many methods to compress files.

This post shows you how to create zip files using Command Prompt.

But you should see to it that there is no active installation going on.

save the text file

Otherwise, the running process will be interrupted, and occur error.

Step 2: Locate theTempfolder atC:\Windows\Temp.

Step 3: Right-go for the cab file you want to remove and chooseDeletefrom the context menu.

save the file

Step 2: HitEnterto pop crack open the Notepad.

Step 3: Copy and paste the following content to the Notepad.

@echo off

runas>nul

echo Removing archives Temp…

del /f C:WindowsTemp*.

delete cab files using batch file

*

echo Fixing Windows!!!

del /f C:WindowsLogsCBS*.log

echo Done!

pause

Step 4: Click onFileand choose theSavechoice.

How To Create & Run A Batch File On Windows 10

Step 5: Rename it asDelete CAB Files.bat, then selectAll filesfrom theSave as typemenu.

Step 6: press theSavebutton.

Step 7: Navigate to the saved location and right-choose it to chooseRun as administrator.

set the Storage Sense

Step 8: A Command Prompt window will be prompt.

you’re able to follow the on-screen instruction to delete the temporary files.

Do you know what a batch file is and how to create a batch file?

How to Automatically Free up Space with Storage Sense on Windows?

If not, you should read this post since a .bat file could be useful sometimes.

Step 1: PressWin + Ito open Windows prefs.

Step 2: Shift toSystem>Storage.

Step 3: Toggle the switch underStoragetoOnand select theConfigure Storage Sense or run it nowoption.

Step 4: Add a checkmark in front ofDelete temporary files that my apps arent using.

you’re free to also set the deletion period to clear your Recycle Bin.

Bonus Tip

Deleting files canfree up the storage spaceon your gear.

But if you have deleted useful files by mistake, you gotta restore them safely.

I recommend the professional data recovery tool,MiniTool Power Data Recovery.

MiniTool Power Data Recovery is thebest free data recovery softwarefor Windows users.

you’re able to experience more powerful functions by downloading the free edition.

Hope you could delete temporary cab files successfully with the guidance above.

If you delete personal files accidentally, try MiniTool Power Data Recovery to retrieve them.