fix some comments, and add a type check to delete
Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>