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