Skip to content

removeItem

Function
removeItem(requestOptionsIUserItemOptions): Promise<{ itemId: string; success: boolean }>

Delete an item from the portal. See the REST Documentation for more information.

Use dark colors for code blocksCopy
1 2 3 4 5 6 import { removeItem } from "@esri/arcgis-rest-portal";  removeItem({  id: "3ef",  authentication })
Parameters
ParameterTypeNotes
requestOptionsIUserItemOptions

Options for the request

Returns 
Promise<{ itemId: string; success: boolean }>

A Promise that deletes an item.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.