Free Support Forum - aspose.com

How to execute a Delete request to the path of your folder?

Hello,
I am trying to find a good solution for a pdf conversion​ tool that will convert our docx to pdf. The way your conversion​ goes is that you first upload the file and you retrieve the same file in another format. But the file still exists in the storage. I tried looking for a way to delete the file from the storage. Just execute a Delete request to the path of your folder?
Kind Regards,
Arne


Submitted from: http://saaspose.com/

Hi Arne,

You can use DeleteFile method of the Folder class if you are using SDK or use File resource with HTTP DELETE method as you can see in example 5 at http://saaspose.com/docs/display/rest/File if your want to use REST example.

You can also use convert resource http://saaspose.com/docs/display/words/convert+%28Controller+resource%29 if you want to convert your files without using storage. In this case, you need to send your file in the request body.

Please also share your development platform and we will share links to more specific REST and SDK examples with you.

Best Regards,
Muhammad Ijaz
Support Developer, Saaspose Sialkot Team
http://www.saaspose.com

Hello,

Well when I took a better look in your Java SDK, I did find out you can very easily delete a file. Thanks for your time to answer. Loving the service!

Kind Regards

Arne Van Raepenbusch
Java Developer

Veldkant 33
2550 Kontich

Email:
arne.vanraepenbusch@iadvise.be
Mobile: (+32) 472 63 30 20