How to move mesh object center ?

When I try to move mesh centre to cursor, I get error message: “Can’t change the center of a mesh with vertex keys”
After deleting the vertex key, I still get the same error message.

Can anyone tell me how to really delete the vertex keys so I can then move the mesh center?



seems to work in object mode only not edit mode