strated delete

started the coding for the delete function