How to delete files from a remote server using phpStorm

So, I added a remote server to phpStrom, and I can change the files there. But if I delete files, they disappear only from my computer, and not on the server. How to delete files from a remote server using phpStorm?

+4
source share
1 answer

To manually delete files from a remote location - use the Remote Host Tool Window (or Tools | Deployment | Browse Remote Host, if it does not appear) - move and delete any file) you want.

In order for your remote host to synchronize with the local one (for example, delete the remote file as soon as the local file is deleted), you need to enable automatic download in Settings | Deployment | Options, in particular:

  • Upload modified items automatically to the default server
  • Delete targets when source does not exist

enter image description here

Obviously, you need to configure all of these options that are most suitable for your workflow.

+12
source

Source: https://habr.com/ru/post/1529380/


All Articles