src/api/MailboxesAPI.js
/**
   * DELETE /mailboxes/{mailboxName}
   *
   * Destroy the specified mailbox.
   *
   * *API available since Asterisk 12.1*
   *
   * @param {object} params
   * @param {string} params.mailboxName The name of the mailbox to destroy.
   * @returns {Promise} Resolves if the specified mailbox is successfully
   *  destroyed. Rejets if the specified mailbox cannot be found (status 404).
   */
DELETE /mailboxes/{mailboxName}
Destroy the specified mailbox.

*API available since Asterisk 12.1

@param {object} params
@param {string} params.mailboxName The name of the mailbox to destroy.
@returns {Promise} Resolves if the specified mailbox is successfully
destroyed. Rejets if the specified mailbox cannot be found (status 404).
DELETE / mailboxes / { mailboxName } Destroy the specified mailbox . * API available since Asterisk 12 . 1 @param { object } params @param { string } params . mailboxName The name of the mailbox to destroy . @returns { Promise } Resolves if the specified mailbox is successfully destroyed . Rejets if the specified mailbox cannot be found ( status 404 ) .
destroy(params) {
    const { mailboxName } = params;
    const name = encodeURIComponent(mailboxName);
    return this._request({
      method: "DELETE",
      url: `${this._baseUrl}/mailboxes/${name}`,
    });
  }
destroy ( params ) { const { mailboxName } = params ; const name = encodeURIComponent ( mailboxName ) ; return this . _request ( { method : "DELETE" , url : ` ${ this . _baseUrl } ${ name } ` , } ) ; }
DELETE /mailboxes/{mailboxName}
 Destroy the specified mailbox.
DELETE / mailboxes / { mailboxName } Destroy the specified mailbox .