changing delete in server api to return void.