src/api/AsteriskAPI.js
/**
   * DELETE /asterisk/config/dynamic/{configClass}/{objectType}/{id}
   *
   * Delete a dynamic configuration object
   *
   * *API available since Asterisk 13.5*
   *
   * @param {object} params
   * @param {string} params.configClass The configuration class containing
   *  dynamic configuration objects.
   * @param {string} params.objectType The type of configuration object to
   *  delete.
   * @param {string} params.id The unique identifier of the object to delete.
   * @returns {Promise} Resolves if the specified dynamic configuration
   *  object was successfully deleted. Rejects if the `configClass`,
   *  `objectType`, or `id` do not exist (404 status), or if a permissions
   *  issue prevented the deletion (403 status).
   */


*API available since Asterisk 13.5

@param {object} params
@param {string} params.configClass The configuration class containing
dynamic configuration objects.
@param {string} params.objectType The type of configuration object to
delete.
@param {string} params.id The unique identifier of the object to delete.
@returns {Promise} Resolves if the specified dynamic configuration
object was successfully deleted.
* API available since Asterisk 13 . 5 @param { object } params @param { string } params . configClass The configuration class containing dynamic configuration objects . @param { string } params . objectType The type of configuration object to delete . @param { string } params . id The unique identifier of the object to delete . @returns { Promise } Resolves if the specified dynamic configuration object was successfully deleted .
deleteObject(params = {}) {
    const configClass = encodeURIComponent(params.configClass);
    const objectType = encodeURIComponent(params.objectType);
    const id = encodeURIComponent(params.id);
    return this._request({
      method: "DELETE",
      url: `${this._baseUrl}/asterisk/config/dynamic/${configClass}/${objectType}/${id}`
    });
  }
deleteObject ( params = { } ) { const configClass = encodeURIComponent ( params . configClass ) ; const objectType = encodeURIComponent ( params . objectType ) ; const id = encodeURIComponent ( params . id ) ; return this . _request ( { method : "DELETE" , url : ` ${ this . _baseUrl } ${ configClass } ${ objectType } ${ id } ` } ) ; }
DELETE /asterisk/config/dynamic/{configClass}/{objectType}/{id}
 Delete a dynamic configuration object
DELETE / asterisk / config / dynamic / { configClass } / { objectType } / { id } Delete a dynamic configuration object
// prettier-ignore