avoid duplicate id conversion
docs and tidy
use getRecordMetadata in delete() to determine if the record exists or not