Maybe a bit of a glitch in PyCharm (using 2024.3), but I found if you delete the file from Commit view, then do a Ctrl-z to undo the delete, the file will be restored on local disk but will remain as "deleted" for the commit changes. You can commit/push the change and it will delete it from the repo while keeping it local.