updated delete_realm to be used interactively