import { request } from "@esri/arcgis-rest-request" ; import { getPortalUrl } from "../util/get-portal-url" ; import { IUserGroupOptions } from "./helpers" ; param requestOptions returns export function removeGroup ( requestOptions ) { const url = `${ getPortalUrl ( requestOptions ) }/community/groups/${ requestOptions . id }/delete` ; const options = { ... requestOptions } ; return request ( url , options ) ; }