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 for 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

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

RemoveDataStoreItem

  • Summary
  • Syntax
  • Code sample

Summary

Unregisters a folder or database from an ArcGIS Server site.

Syntax

RemoveDataStoreItem (connection_file, datastore_type, connection_name)
ParameterExplanationData Type
connection_file

An ArcGIS Server connection file (.ags) for the server whose database or folder is being unregistered. If you've made a connection in ArcCatalog, you can use the connection file found in your user profile directory. Alternatively, you can create a connection file from scratch using the function CreateGISServerConnectionFile.

String
datastore_type

The type of data being unregistered.

  • DATABASE —The data resides in an enterprise database.
  • FOLDER —The data is file-based.
String
connection_name

The name of the folder or database being unregistered, as it is currently registered with the ArcGIS Server site.

String

Code sample

RemoveDataStoreItem example

Unregisters a folder from ArcGIS Server that was using the alias "My local data folder".

import arcpy

arcpy.RemoveDataStoreItem("GIS Servers/MyConnection.ags", "FOLDER",
                          "My local data folder")

Related topics

  • AddDataStoreItem
  • ListDataStoreItems
  • ValidateDataStoreItem

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

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