removeFolder
FunctionremoveFolder(requestOptions: IFolderIdOptions): 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.
import { removeFolder } from "@esri/arcgis-rest-portal";
removeFolder({
folderId: "fe4",
owner: "c@sey",
authentication
})
.then(response)
Parameters
Parameter | Type | Notes |
---|---|---|
request | IFolderIdOptions | Options for the request |
Returns
Promise<{ folder: { id: string; title: string; username: string }; success: boolean }>
A Promise that deletes a folder