deleteList(listId, token) {
        const uri = this.apiEndpoint + LIST_MANAGEMENT_PATH + listId;
        const headers = this.__buildHeaders(token);

        return this.apiClient.delete(uri, headers)
            .then(this.__validateApiResponse);
    }
/**
     * Delete a custom list
     * @param {string} listId unique Id associated with the list
     * @param {string} token bearer token for list management permission
     * @returns {Promise<Object>}
     * @memberOf ListManagementService
     */
Delete a custom list
@param {string} listId unique Id associated with the list
@param {string} token bearer token for list management permission
@returns {Promise}
@memberOf ListManagementService
Delete a custom list @param { string } listId unique Id associated with the list @param { string } token bearer token for list management permission @returns { Promise } @memberOf ListManagementService
deleteList(listId, token) {
        const uri = this.apiEndpoint + LIST_MANAGEMENT_PATH + listId;
        const headers = this.__buildHeaders(token);
        return this.apiClient.delete(uri, headers)
            .then(this.__validateApiResponse);
    }
deleteList ( listId , token ) { const uri = this . apiEndpoint + LIST_MANAGEMENT_PATH + listId ; const headers = this . __buildHeaders ( token ) ; return this . apiClient . delete ( uri , headers ) . then ( this . __validateApiResponse ) ; }
Delete a custom list
 @param {string} listId unique Id associated with the list
 @param {string} token bearer token for list management permission
 @returns {Promise<Object>}
 @memberOf ListManagementService
Delete a custom list @param { string } listId unique Id associated with the list @param { string } token bearer token for list management permission @returns { Promise<Object > } @memberOf ListManagementService