Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8131975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T09:13:48+00:00 2026-06-06T09:13:48+00:00

My application is deleting a file from the ftp in about 15s no matter

  • 0

My application is deleting a file from the ftp in about 15s no matter the size.
FileZilla, on the other hand, deletes the same file instantly.

Here is my code:

FtpWebRequest request = (FtpWebRequest)WebRequest.Create(fileName);
request.Proxy = null;    
request.UsePassive = false;
request.KeepAlive = !request.UsePassive;
request.Method = WebRequestMethods.Ftp.DeleteFile;
request.Credentials = new NetworkCredential(usr, pwd);

FtpWebResponse response = (FtpWebResponse)request.GetResponse();
Debug.Print("Delete status: {0}", response.StatusDescription);
response.Close();

I tried to delete the file with async functions, but I got ‘Cannot send a content-body with this verb-type.’ error.

Can this be any faster and why is so slow?
Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T09:13:50+00:00Added an answer on June 6, 2026 at 9:13 am

    What operating System are you running? My only thinking is that with Windows FileZilla may only be flagging a file for a delete and not actually deleting it. Once a file is flagged to be deleted it may be overwritten at some point when new data comes in. The “Instant” delete comes from setting the flag thats all. Your code i believe is not. If you are using windows you can see this because deleting a file of any size no matter how large is instant.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am deleting an image file from my application. I was doing new File(filename).delete
My application crashes when I'm deleting row from table. Here is my sources where
I have written a PHP application that uses Objects heavily. Added, deleting, updating etc..
Application is running in my local system app.config file <add key=dbconn value=Data Source=(local);database=VTech;User ID=sa;Password=sa;
I need to create a simple program/utility to parse a txt file (deleting blank
I have made an application project in Visual Studio 2008 C#, SQL Server from
gettting this error. pid-file for killed process 8600 found (C:/cyncabc/tmp/pids/delayed_job.pid), deleting. c:/ruby/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons/daemonize.rb:103:in `fork': fork()
I'm doing a secure application, where an user can browse some file and open
I'm trying to provide integration to my django application from subversion through the post
I am writing some code to update an application by fetching new dlls from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.