Using find to Remove Files

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

find . -name \*.pyc -delete
Print Article

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.