---
title: "Discussion on \"How to remove __pycache__ folders and .pyc files\" | Hashnode"
description: "Discussion on \"How to remove __pycache__ folders and .pyc files\". These folders and files are generated by python. You should add these to your VCS’s ignore file. But if you need to clean these manually, you can do with the command below:\nfind . | grep -E \"(__pycache__|\\.pyc|\\.pyo$)\" | xargs rm -rf\n\nThis command wi..."
url: "https://hashnode.com/posts/how-to-remove-pycache-folders-and-pyc-files/6390d0b468aae0e23a91f497"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to remove \_\_pycache\_\_ folders and .pyc files](https://www.erdaltaskesen.com/how-to-remove-pycache-folders-and-pyc-files?utm_source=hashnode&utm_medium=feed)

These folders and files are generated by python. You should add these to your VCS’s ignore file. But if you need to clean these manually, you can do with the command below: find . | grep -E "(\_\_pycache\_\_|\\.pyc|\\.pyo$)" | xargs rm -rf This command wi...

Feb 20, 2018 · 1 min read · erdaltaskesen.com  
Updated Dec 10, 2022  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#python3](https://hashnode.com/tag/python3)
-   [#pycache](https://hashnode.com/tag/pycache)
-   [#pyc](https://hashnode.com/tag/pyc)

## Written by

[Erdal TAŞKESEN](https://hashnode.com/@erdaltsksn)

@erdaltsksn · Earth

  
[View profile](https://hashnode.com/@erdaltsksn)

Self-Taught Software Engineer, Day Trader, Investor, Entrepreneur, and Teacher

Hey, y’all 🖖🏽 I am a passionate self-taught developer, open-source advocate, and tech enthusiast with a hands-on approach to problem-solving and an unending thirst for knowledge. Anything and everything classified as technology fascinate me.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
