Update conflict when deleting a record in code

i am getting an exception while deleting the record from tablen through coding

An update conflict occurred due to another user process deleting the record or changing one or more fields in the record.

It means that the record has changed after you read it and before you (tried to) delete it. Somebody change the record and you would now destroy these changes, without even knowing that they were there.
It may be a normal update conflict caused by two users doing conflicting changes on the same record.
Or it may be a bug in code, e.g. when you use an old buffer after changing the record in database through another buffer.