updated delete command to use a record id