Using find to Remove Files

Body

The following command will remove all *.pyc files from the current directory and all subdirectories.

find . -name \*.pyc -delete

Details

Details

Article ID: 1992
Created
Thu 12/11/25 4:30 PM
Modified
Fri 12/12/25 8:22 AM

Related Services / Offerings

Related Services / Offerings (1)

Submit a General Support request using the "Purdue IT Request" button to the right. The Purdue IT Service Desk will examine, follow-up and route as needed.