removeFolder

Function

import { removeFolder } from "@esri/arcgis-rest-items";
//
removeFolder({
  folderId: "fe4",
  owner: "c@sey",
  authentication
})
  .then(response)
  • removeFolder(requestOptions: IFolderIdRequestOptions) : Promise<{
    folder:
    {
    id:
    string
    title:
    string
    username:
    string
    }
    success:
    boolean
    }>

Parameters

Parameter Type Default Notes
requestOptions Required IFolderIdRequestOptions

Options for the request

Returns

Promise<{

folder:
{
id:
string
title:
string
username:
string
}
success:
boolean
}> - A Promise that deletes a folder


Delete a non-root folder and all the items it contains. See the [REST
Documentation](https://developers.arcgis.com/rest/users-groups-and-items/delete-folder.htm) for
more information.

Function defined in packages/arcgis-rest-items/src/remove.ts:108