Remove Image from Folder using Jquery


I want to remove image from folder physically using Jquery / Javascript.

Please help me regarding this.
Who is Participating?
sachinjain_aspnetConnect With a Mentor Author Commented:
yes , if image is on Server , then we can not delete using Jquery ...
Is the folder on a server or local drive ?

In fact it is not that relavant where the folder is, javascript is ran/run on the client, there fore all you could do would be to send an ajax request to the server to run some php that would remove the file, so really, you need a script to call a php script on the server that will delete the file.

If it is a local (on the client) folder that you need deleteing, then as far as I know it is not possible, could you imagine the security risks should that be possible...
sachinjain_aspnetAuthor Commented:
since Jquery / Javascript run on Client Side.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.