"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.USER_HUB_SETTINGS_KEY = exports.USER_HUB_SETTINGS_APP = void 0;
exports.clearUserHubSettings = clearUserHubSettings;
const userAppResources_1 = require("./userAppResources");
exports.USER_HUB_SETTINGS_APP = "hubforarcgis";
exports.USER_HUB_SETTINGS_KEY = "hub-settings.json";
/**
 * @private
 * Internal use only; Clear User Hub Settings
 * @param context
 * @returns
 */
function clearUserHubSettings(context) {
    const token = context.tokenFor(exports.USER_HUB_SETTINGS_APP);
    const key = exports.USER_HUB_SETTINGS_KEY;
    return (0, userAppResources_1.removeUserResource)(context.currentUser.username, key, context.portalUrl, token);
}
//# sourceMappingURL=clearUserHubSettings.js.map