Each record has delete flag in begining so when to implement delete method then which field should be updated ? or complete record will be deleted ? or just update delete flag with 1 .
In my assignment written . 1 byte "deleted" flag. 0 implies valid record, 1 implies deleted record
The record should not be deleted from db. you should set the flag in the beginning of the record. If you delete the record physically, you will be failed