Added delete method

The delete method has been implemented