ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

RemoveToolbox

  • Summary
  • Discussion
  • Syntax
  • Code sample

Summary

Removes the specified toolbox, either by specifying its path or referencing its alias. Removes the specified toolbox from the current geoprocessing session. Server toolboxes can also be removed using a semicolon delimiter.

Discussion

Caution:

RemoveToolbox only removes tools from the geoprocessor object; tools are not directly removed from arcpy.

Syntax

RemoveToolbox (toolbox)
ParameterExplanationData Type
toolbox

The name of the toolbox, including either path or alias, to be removed from the current geoprocessing session. The name/path or alias should be placed in a double-quoted string.

Server toolboxes can be removed using a semicolon delimiter.

  • The name, including path, or alias, of the toolbox to be removed from the current geoprocessing session. Place the name/path, or alias, string inside double quotes. Server toolboxes can also be removed using a semicolon delimiter.

    • Syntax for Internet ArcGIS Server
      • URL servername;{username};{password}
    • Syntax for Local ArcGIS Server
      • machinename;servername.
    • Syntax for Internet ArcGIS Server
      • URL;servername;{username};{password}
    • Syntax for Local ArcGIS Server
      • machinename;servername

String

Code sample

RemoveToolbox example

Removes the specified toolbox from access by current geoprocessing session.

import arcpy

# Remove a toolbox from session
arcpy.RemoveToolbox("c:/mytoolboxes/operations.tbx")

Related topics

  • IsSynchronous
  • ListToolboxes
  • ListTools
  • Listing tools, toolboxes, and environment settings

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal