PyCharm 2026.2 Help

Clean .pyc files

Depending on the selected Python interpreter, Python compiled .pyc files are created.

By default, the .pyc files are ignored, and thus are not visible in the Project tool window. However, PyCharm makes it possible to delete .pyc files from projects or directories.

To remove Python compiled files

  1. In the Project tool window, right-click a project or directory, where Python compiled files should be deleted from.

  2. From the context menu, choose Clean Python compiled files.

    The .pyc files residing in the selected directory are silently deleted.

07 July 2026