Change delete method to return void.