Deleting tag mappings after a tag is deleted

The delete function returned before the related tag mappings were deleted resulting in the tag mapping not deleted.