RemoveDataStoreItem

サマリー

Unregisters a folder or database from an ArcGIS Server site.

構文

RemoveDataStoreItem (connection_file, datastore_type, connection_name)
パラメーター説明データ タイプ
connection_file

For a hosting server, provide the server URL or use the MY_HOSTED_SERVICES keyword. For a stand-alone server, an ArcGIS Server connection file (.ags) representing the server with which you want to register the data.

String
datastore_type

The type of data being unregistered.

  • DATABASEThe data resides in an enterprise database.
  • FOLDERThe 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

コードのサンプル

RemoveDataStoreItem for a stand-alone server 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")
RemoveDataStoreItem for a hosted server example

Unregisters a database from ArcGIS Server that was using the alias "MSSQL_Conn".

import arcpy

arcpy.RemoveDataStoreItem("https://webadaptorhost.domain.com/webadaptorname", "DATABASE",
                          "MSSQL_Conn")

関連トピック