Android Question Deleting a file off my website

Robert Valentino

Well-Known Member
Licensed User
I use the following to Download a file a text file:
Dim Job           As HttpJob
Dim Job2         As HttpJob

Job.Initialize("", Me)
Job.Download( &"?dummy=" & DateTime.Now)

Wait For (Job) JobDone(Job As HttpJob)

If    Job.Success Then 
end if


But when I use the following to try and delete the text file
Job2.Initialize("", Me)
Wait For (Job2) JobDone(Job2 As HttpJob)   

I get the following Error
ResponseError. Reason: Method Not Allowed, Response: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<title>405 Method Not Allowed</title>
<h1>Method Not Allowed</h1>
<p>The requested method DELETE is not allowed for the URL /BBs//did_5200e1634e441517.txt.</p>

I believe I need a password but am not sure how to add it to the command

Not to mention concerned about hard coding a password in my app

How should I do this.


PS: Happy New Year to ALL


Licensed User
Most servers are usually setup to not allow the deletion of files using HTTP. Can you not do it via FTP, if you have access to the server?
Upvote 0

Robert Valentino

Well-Known Member
Licensed User
So are you saying if I change the HTTP to FTP it will let me delete the file?

I believe it will need a password and am not sure how to give it?

Found ftp.FileDelete in a search. Now just need to get it to work
Last edited:
Upvote 0