script for object deletion: objects are specifed by key type and id