src/api/AsteriskAPI.js
/**
   * DELETE /asterisk/modules/{moduleName}
   *
   * Unload an Asterisk module.
   *
   * *API available since Asterisk 13.5*
   *
   * @param {object} params
   * @param {string} params.moduleName Case-sensitive module name.
   * @returns {Promise} Resolves if the module was successfully loaded.
   *  Rejects if the module could not be found in the loaded modules (status 404)
   *  or the module information could not be unloaded for some reason (status 409).
   */
DELETE /asterisk/modules/{moduleName}
Unload an Asterisk module.

*API available since Asterisk 13.5

@param {object} params
@param {string} params.moduleName Case-sensitive module name.
@returns {Promise} Resolves if the module was successfully loaded.
Rejects if the module could not be found in the loaded modules (status 404)
or the module information could not be unloaded for some reason (status 409).
DELETE / asterisk / modules / { moduleName } Unload an Asterisk module . * API available since Asterisk 13 . 5 @param { object } params @param { string } params . moduleName Case - sensitive module name . @returns { Promise } Resolves if the module was successfully loaded . Rejects if the module could not be found in the loaded modules ( status 404 ) or the module information could not be unloaded for some reason ( status 409 ) .
unloadModule(params = {}) {
    const { moduleName } = params;
    const name = encodeURIComponent(moduleName);
    return this._request({
      method: "DELETE",
      url: `${this._baseUrl}/asterisk/modules/${name}`,
    });
  }
unloadModule ( params = { } ) { const { moduleName } = params ; const name = encodeURIComponent ( moduleName ) ; return this . _request ( { method : "DELETE" , url : ` ${ this . _baseUrl } ${ name } ` , } ) ; }
DELETE /asterisk/modules/{moduleName}
 Unload an Asterisk module.
DELETE / asterisk / modules / { moduleName } Unload an Asterisk module .