How to use the @esri/arcgis-rest-portal.removeItem function in @esri/arcgis-rest-portal

To help you get started, we’ve selected a few @esri/arcgis-rest-portal examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Esri / arcgis-rest-js / demos / node-cli-item-management / index.js View on Github external
return prompts(deleteQuestions).then(({ del }) => {
    if (del) {
      console.log(chalk.red.bold(`Deleting ${item.title}`));
      return removeItem({
        id: item.id,
        authentication: session
      }).then(() => {
        return Promise.resolve({ done: false, deleted: del, item });
      });
    }

    return Promise.resolve({ done: false, deleted: del, item });
  });
}
github roemhildtg / vscode-arcgis-assistant / src / lib / PortalConnection.ts View on Github external
public deleteItem(id : string){
        return removeItem({
            id: id,
            authentication: this.authentication,
            portal: this.restURL,
        });
    }