async deleteProfile(request) {
    const id = request.getId();
    const userId = request.getKuid();
    const options = {
      onAssignedUsers: request.getString("onAssignedUsers", "fail"),
      refresh: request.getRefresh("wait_for"),
      userId,
    };

    await this.ask("core:security:profile:delete", id, options);

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

    // @todo - replace by an acknowledgement
    return { _id: id };
  }
Deletes a profile

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