delete record method