async deleteRole(request) {
    const id = request.getId();

    await this.ask("core:security:role:delete", id, {
      refresh: request.getRefresh("wait_for"),
    });

    global.kuzzle.log.info(
      `[SECURITY] ${SecurityController.userOrSdk(
        request.getKuid(),
      )} applied action "${request.input.action} on role "${id}."`,
    );

    // @todo This avoids a breaking change... but we should really return
    // an acknowledgment.
    return { _id: id };
  }
Remove a role according to the given id

@param {Request} request
@returns {Promise<Object>}