locked
Deleting File From User's Computer RRS feed

  • Question

  • User-1240188151 posted

    I'm pretty sure this cannot be done... but... you never know.

    I'm programming an intranet site for a small computer.  Part of the program allows the user to download, edit, and upload a Word document.  The thing is, I want to make sure the Word document is deleted from the USER'S computer (not the server), after it is uploaded, so we don't have copies of the document laying around.  Is there anyway to for the user to allow the program access to search and delete that file off their computer?  Obviously, it cannot be done automatically, for simple security, but perhaps there is a way, to allow the user to grant the program permission?


    Thanks a lot!

    Saturday, October 20, 2018 7:54 PM

Answers

  • User-821857111 posted

    No. You cannot delete files on the client from a web application for the obvious security reasons. You will have to create a client application (console,  windows service etc) that can get a list of files that the user has downloaded and then search the users hard drive for them and then delete them.

    Further discussion on how to do that is off topic here. 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, October 20, 2018 8:11 PM