Clear FTP folder before deploy

Jérémie Bertrand's Avatar

Jérémie Bertrand

29 Oct, 2015 10:27 PM

Hi,

The FTP deploy works, but I want to clear the remote FTP folder before the deploy, in order to not have unwanted old file in my website.
Is it possible through AppVeyor settings or should I use powershell to do that?

Thanks.

  1. Support Staff 1 Posted by Feodor Fitsner on 29 Oct, 2015 11:49 PM

    Feodor Fitsner's Avatar

    Hi Jeremie,

    Current FTP deployment provider doesn't have built-in functionality for cleaning the folder before deployment.

  2. 2 Posted by Jérémie Bertran... on 01 Nov, 2015 08:12 AM

    Jérémie Bertrand's Avatar

    Thanks for the answer.

    For those who needs a similar functionality I've made a powershell script: https://gist.github.com/laedit/cce3b663c7423367ca22

  3. Support Staff 3 Posted by Feodor Fitsner on 01 Nov, 2015 03:46 PM

    Feodor Fitsner's Avatar

    Nice solution - thanks for sharing it!

  4. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:01 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac