curb icon indicating copy to clipboard operation
curb copied to clipboard

Cannot delete file from remote directory

Open rushirajchavan opened this issue 12 years ago • 2 comments

Hi,

I am using curb-0.8.5 gem. I was trying something like

c=Curl::Easy.new url do |curl|

some parameter settings

end c.set(:customrequest,'dele') c.perform

But instead of deleting the file it downloaded the file. Is this the correct way to perform deletion? Is there any other way?

Thanks, Rushi

rushirajchavan avatar Oct 16 '13 10:10 rushirajchavan

I think you want to use Curl.delete(url)

taf2 avatar Oct 17 '13 00:10 taf2

Thank you.

I got it resolved. I used obj.ftp_commands=["DELE filename" ] followed by obj.perform.

Thanks, Rushi

rushirajchavan avatar Oct 22 '13 12:10 rushirajchavan