prevent deleting already deleted record