attempt to delete as a value if not a key

Fixes #14653