$fn.deleteUser(email)
アプリケーションの認証ユーザを削除します。[非同期]
引数
名前 | 型 | 説明 |
---|---|---|
string | 削除するユーザのEメール |
戻り値
なし
サンプル
try { /* CSV の内容 * --------------------------- * "email" * "user01@test.co.jp" * "user02@test.co.jp" * --------------------------- */ const file = await $fn.getFile('/userInfo.csv'); const buffer = file.data; const userInfos = $fn.csvToObject(buffer); const emails = userInfos.map(function (item) { return item['email']; }); // ユーザ削除 for (let email of emails) { console.log(email); await $fn.deleteUser(email); }} catch(err) { console.log("Error", err);}