$fn.deleteUser(email)
Deletes the authenticated user of the application. "asynchronous"
Arguments
Name | Type | Description |
---|---|---|
string | Email of user to be deleted |
Return value
None
Sample
try { /* CSV content * --------------------------- * "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']; }); // Delete User for (let email of emails) { console.log(email); await $fn.deleteUser(email); }} catch(err) { console.log("Error", err);}