src/api/DeviceStatesAPI.js
/**
   * DELETE /deviceStates/{deviceName}
   *
   * Delete the state of a device controlled by ARI.
   *
   * @param {object} params
   * @param {string} params.deviceName The name of the device to remove the
   *  state of.
   * @returns {Promise} Resolves when The device state has been successfully
   *  removed. Rejects if the provided device name does not match a device
   *  (status 404) or if the device specified is not controlled by ARI
   *  (status 409).
   */
DELETE /deviceStates/{deviceName}
Delete the state of a device controlled by ARI.

@param {object} params
@param {string} params.deviceName The name of the device to remove the
state of.
@returns {Promise} Resolves when The device state has been successfully
removed. Rejects if the provided device name does not match a device
(status 404) or if the device specified is not controlled by ARI
(status 409).
DELETE / deviceStates / { deviceName } Delete the state of a device controlled by ARI . @param { object } params @param { string } params . deviceName The name of the device to remove the state of . @returns { Promise } Resolves when The device state has been successfully removed . Rejects if the provided device name does not match a device ( status 404 ) or if the device specified is not controlled by ARI ( status 409 ) .
destroy(params) {
    const { deviceName } = params;
    const name = encodeURIComponent(deviceName);
    return this._request({
      method: "DELETE",
      url: `${this._baseUrl}/deviceStates/${name}`,
    });
  }
destroy ( params ) { const { deviceName } = params ; const name = encodeURIComponent ( deviceName ) ; return this . _request ( { method : "DELETE" , url : ` ${ this . _baseUrl } ${ name } ` , } ) ; }
DELETE /deviceStates/{deviceName}
 Delete the state of a device controlled by ARI.
DELETE / deviceStates / { deviceName } Delete the state of a device controlled by ARI .