PyCharm 3.1.0 Web Help

If you delete a file under version control, it still exists in the repository until deletion is committed. A deleted file is placed to the active changelist, and is displayed in grey font.

To delete a file
  1. Select a file in any navigation view, and press DeleteDeleteDeleteDeleteDelete or Ctrl+DDeleteDeleteDeleteDelete or BackspaceDeleteDelete or Backspace, or choose Delete on the context menu.
  2. In the dialog that opens, you can opt to delete file without search for usages, or perform safe delete, to make sure that you are deleting an unused file, by checking Safe delete option. In this case, specify the refactoring options.

    py_deleteFile

    The encountered usages are reported in the Usages Detected dialog box. You can view and correct these usages in the Safe Delete tab of the Find tool window. The deleted files are added to a changelist.

  3. Commit changes to the repository.

See Also

Procedures:

Reference:

Web Resources: