Clean .pyc files
The Python interpreter creates compiled .pyc files.
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
In the Project tool window, right-click a project or directory, where Python compiled files should be deleted from.
From the context menu, choose Clean Python Compiled Files.
PyCharm deletes the .pyc files in the selected directory without a prompt.
14 October 2026