API support for deleting key