fix deleting by tag

This function would previously delete the tag, but not the associated items.