We help IT Professionals succeed at work.

Remove Image from Folder using Jquery


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

Please help me regarding this.
Watch Question

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...
yes , if image is on Server , then we can not delete using Jquery ...


since Jquery / Javascript run on Client Side.