Skip to main content
Inspiring
Sep 16, 2014 5:30 PM UTC
Answered

Error 550 when using CFFTP to remove a file

I'm using cfftp to download files which I parse, then I need to delete the file from the server. (coldfusion 11 - development)

I can list, and download the files fine, but am butting my head into a problem that I can't seem to resolve.

USING THE SAME PATH AND FILE NAME that allowed me to 'get' the file - When I try to remove the file - I get this error.

Error: 550 file: No such file or directory .

(again - the path and file name I provide are identical to the path/filename -

if this is a permission problem, I can delete files thru Filezilla, using the same credentials - with no problem)

Here is the call to remove -

    <cfftp  action="remove"

            connection="myConnection1"

            passive="true"

            timeout="360"

            remotefile="#myPath##fileName#"

            item="file" >

This topic is closed to new replies. Start a new post to keep the conversation going.
jpmyobCorrect answer
Inspiring
Sep 16, 2014 5:40 PM UTC

ANSWER (if not 'answer' - at least code that 'works')

    <cfftp  action="remove"

            connection="myConnection1"

            item="#myPath##fileName#" >

   

This is not what the docs say- or how other examples on line convey it - but this worked for me

2 replies

jpmyobAuthorCorrect answer
Inspiring
Sep 16, 2014 5:40 PM UTC

ANSWER (if not 'answer' - at least code that 'works')

    <cfftp  action="remove"

            connection="myConnection1"

            item="#myPath##fileName#" >

   

This is not what the docs say- or how other examples on line convey it - but this worked for me

Translate
Carl Von Stetten
Legend
Sep 16, 2014 6:23 PM UTC

I'm not sure where you got the "This is not what the docs say" part.  Looking down the list of CFFTP attributes in the CF11 docs that apply to a "remove" operation, those were the attributes I would have expected to need.  Although I agree the examples could be clearer and a specific example of removing a file would be useful.

-Carl V.

Translate