Implementation for Delete
Fixed select
Test cases for delete