Metadata update and delete

Error handling is not fantastic, but I figured this was a start.

Let me know if you have any suggestions, or if you'd like the code to look any different.