PyCharm 2.7.2 Web Help

2.7+

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 .pyc files
  1. In the Project tool window, right-click a project or directory, where .pyc files should be deleted from.
  2. On the context menu, choose Clean .pyc.

    The .pyc files that reside in the selected directory are silently deleted.

Tip

  • If you rename or delete a Python file, the corresponding .pyc file is also deleted.
  • .pyc files are deleted recursively.
  • If you perform update from VCS and skip automatic cleanup, then removing .pyc files is vital. The reason is that after update from version control, some of the Python files could have been deleted, and executing the Clean .pyc command will help you get rid of the unnecessary .pyc files.

See Also

Procedures:

Reference:

External Links:

Web Resources: