This reverts commit ebd1bd4c16. Implemented a new logic for deleting records <<<<<<+++++++++++++
ebd1bd4c16