fetch and delete records