unregisterApp
FunctionunregisterApp(requestOptions: IUnregisterAppOptions): Promise<IUnregisterAppResponse>
Used to unregister the app with given itemId
. See the REST Documentation for more information.
import { unregisterApp, IUnregisterAppResponse } from '@esri/arcgis-rest-developer-credentials';
import { ArcGISIdentityManager } from "@esri/arcgis-rest-request";
const authSession: ArcGISIdentityManager = await ArcGISIdentityManager.signIn({
username: "xyz_usrName",
password: "xyz_pw"
});
unregisterApp({
itemId: "xyz_itemId",
authentication: authSession
}).then((unregisteredApp: IUnregisterAppResponse) => {
// => {itemId: "xyz_itemId", success: true}
}).catch(e => {
// => an exception object
});
Parameters
Parameter | Type | Notes |
---|---|---|
request | IUnregisterAppOptions | Options for |
Returns
Promise<IUnregisterAppResponse>
A Promise that will resolve to an IUnregisterAppResponse
object representing un-registration status.