In the first post in this series, I mentioned that I’ve been working on a plugin in which the users needs to upload a file to a custom post type without the use of the Media Uploader.
This is basically done via use of an `input` type of `file`, WordPress `nonce` values, and some basic PHP functionality, but if you’d like to read more, then be sure to review the first post.
As mention in the first article, the second part of being able to store files and their associated meta data is so that you can also remove the files (and the meta data) when the user triggers the appropriate action.
Specifically, the plugin must do the following:
- Verify the request’s incoming `nonce` value
- Use (or somehow retrieve) the specified meta key for the file to be deleted
- Delete the file from the file system
- Remove the database entries – that is, the meta data – associated with the file
Just as in the last article, we’ll take a look at each step and the code required for each, as well.



