diff --git a/src/cli/manage-users.ts b/src/cli/manage-users.ts index 72e3b49..839950e 100644 --- a/src/cli/manage-users.ts +++ b/src/cli/manage-users.ts @@ -52,10 +52,6 @@ export async function manageUsersCli(app: WatneyApp) { { name: 'View Details', value: viewUserDetails - }, - { - name: 'Delete User', - value: deleteUser } ], message: user.name, @@ -69,20 +65,4 @@ export async function manageUsersCli(app: WatneyApp) { async function viewUserDetails(user: IRegisteredUser) { console.log(JSON.stringify(user, null, 2)); } - - async function deleteUser(user: IRegisteredUser) { - const answers = await inquirer.prompt<{ confirmed: boolean }>({ - message: `Are you sure you want to delete user "${user.name}" (${ - user.username - })?`, - name: 'confirmed', - type: 'confirm' - }); - - if (!answers.confirmed) { - return; - } - - await awaitableWrap(hue.api.deleteUser(user.username)); - } }