Title: code to delete file(s)
Last modified: August 19, 2016

---

# code to delete file(s)

 *  [kathymac](https://wordpress.org/support/users/kathymac/)
 * (@kathymac)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/code-to-delete-files/)
 * Hello,
 * I have created a plugin that displays the contents of a
    directory on the server
   in a table format. The last column of each row contains a checkmark.
 * See: [http://eastcoasttechwriter.ca/?page_id=1687](http://eastcoasttechwriter.ca/?page_id=1687)
 * If the user clicks the href ‘Delete Selected Files’ then I would like my code
   to remove a list of these files. However, I have tried quite a few things and
   am not able to figure out how to do this.
 * Any help would be appreciated…
 * Code below:
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome).
   Please use the [pastebin](http://wordpress.pastebin.com)]_

The topic ‘code to delete file(s)’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [kathymac](https://wordpress.org/support/users/kathymac/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/code-to-delete-files/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
