removeFolder

removeFolder

removeFolder(requestOptionsIFolderIdOptions): Promise<{ folder: { id: string; title: string; username: string }; success: boolean }>

Delete a non-root folder and all the items it contains. See the REST Documentation for more information.

Use dark colors for code blocksCopy
        
1
2
3
4
5
6
7
8
import { removeFolder } from "@esri/arcgis-rest-portal";

removeFolder({
  folderId: "fe4",
  owner: "c@sey",
  authentication
})
  .then(response)
Parameters
ParameterTypeNotes
requestOptions
IFolderIdOptions

Options for the request

Returns 
Promise<{ folder: { id: string; title: string; username: string }; success: boolean }>

A Promise that deletes a folder

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