/* Lib for interacting with customized ILIAS php */ module.exports = { deleteUser, } ///////////////////////////////////////////////////////////////////////// const settings = require("../settings") const {url} = settings.ilias ///////////////////////////////////////////////////////////////////////// async function deleteUser (obj_id, dry = false) { const sp = new URLSearchParams({ command: "deleteUser", obj_id, dry : dry ? "1" : "0", }) let url2 = `${url}?${sp.toString()}` console.log("libIlias.deleteUser >>>", url2) const res = await fetch(url2, {method: "DELETE"}) // console.log(res) const data = await res.json() return data }