How to automatically delete old video files

If you record your computer for over 24 hours and 365 days, you may need to delete old files automatically due to the capacity limit of your hard disk. In this case, you can delete old movie files automatically by using 'Task Scheduler' and 'ForFiles' command of Windows.

To delete old videos automatically, please follow the steps below

  1. Click on Start, type in "Scheduler" and click "Task Scheduler".

    Start Windows task scheduler

  2. [General] tab: Click "Create Task...", type the name of task such as "Auto delete old files" and choose "Run whether user is logged on or not".

    How to delete old videos automatically, Image 2

  3. [Triggers] tab: Choose "Daily" to delete old files every day.

    How to delete old videos automatically, Image 3

  4. [Actions] tab: Click "New..." and enter "ForFiles" and add arguments like below:

    How to delete old videos automatically, Image 4

    • Argument example 1) If the output folder of Bandicam is "C:\Bandicam" and you want to delete files older than 30 days, enter /p "C:\Bandicam" /s /d -30 /c "cmd /c del @file
    • Argument example 2) If the output folder of Bandicam is "C:\Users\XXX\Documents\Bandicam" and you want to delete files older than 15 days, enter /p "C:\Users\XXX\Documents\Bandicam" /s /d -15 /c "cmd /c del @file


    • Once you've completed the steps above, Windows will automatically delete the files in the folder you specified.
  • Capture 4K Ultra HD videos up to 3840x2160
  • Record over 24 hours without stopping
  • Upload a captured video to YouTube

comments have been left on Bandicam.com