• Removes an item or group from AGO.

    Parameters

    • itemId: string

      Id of an item or group to delete

    • authentication: UserSession

      Credentials for the request to AGO

    • permanentDelete: boolean = true

      If true (the default), the item is permanently deleted; if false and the item type supports the recycle bin, the item will be put into the recycle bin; note that this does not apply to groups

    Returns Promise<IStatusResponse>

    A promise that will resolve with the result of the request