Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8432753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:12:44+00:00 2026-06-10T06:12:44+00:00

I want to clean up my binary files in my development directory. Is there

  • 0

I want to clean up my binary files in my development directory. Is there a way I can recurse through the directory structure and delete all files that are in a bin directory using the Windows command line? (I am using Windows 7.)

Per Nathan, I tried to make a batch foo.bat:

@ECHO OFF 
for /R %%x in (.) do call:myExistFunc %%x 
GOTO:EOF 
:myExistFunc 
if exist %~1\.\bin call:myDeleteFunc %%~1\bin 
GOTO:EOF 
:myDeleteFunc 
echo. Deleting files from %~1 
del %~1*.* /Q

…and this worked.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T06:12:45+00:00Added an answer on June 10, 2026 at 6:12 am

    Create a batch file that contains the following:

    for /R %%x in (bin) DO del "%%x\\*.*" /Q
    

    This will recursively walk through all child directories (from the current directory) and delete all files from every BIN folder. You could change the *.* to whatever file type you’d like to delete.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Results are in clean files. I want to get them to latex-table format with
I have several C and C++ projects that all follow a basic structure I've
I have a 56 bit binary string that i want to use as the
I have some unicode text that I want to clean up using regular expressions.
I have a large data set that I want to clean up for the
I want to provide dynamic download of files. These files can be generated on-the-fly
I want to clean up some parsed text such as \n the said \r\n\r\n\r\n
I have a huge Ping list and want to clean it. Using PHP I
I use htmlspecialchars function in my string. But, I don't want to clean them;
I want to write clean code. So When writing a method I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.