<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Unable to delete a feature class from ArcCatalog in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/unable-to-delete-a-feature-class-from-arccatalog/m-p/786476#M1830</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using ArcCatalog 10.3.1 and SQL server 2012. I have a feature class called "city" using by a map service. I have a new copy of this feature class with more record from other server. What i did was:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;step 1: stopped the map service;&lt;/P&gt;&lt;P&gt;step 2: changed the feature class name to city_2 &lt;SPAN&gt;successfully&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;step 3: copied and pasted my new update feature class into my SQL database call same name city;&lt;/P&gt;&lt;P&gt;step 4: restarted the map service and tested it to make sure the map service works &lt;SPAN&gt;successfully&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;step 5: deleted the city_2 from the SQL database successfully;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;step 6: Clicked "refresh" the SQL database, but the city_2 feature class came back;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise why I can not delete this old feature class?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom#&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Dec 2016 21:22:37 GMT</pubDate>
    <dc:creator>tomwang1</dc:creator>
    <dc:date>2016-12-16T21:22:37Z</dc:date>
    <item>
      <title>Unable to delete a feature class from ArcCatalog</title>
      <link>https://community.esri.com/t5/geodatabase-questions/unable-to-delete-a-feature-class-from-arccatalog/m-p/786476#M1830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using ArcCatalog 10.3.1 and SQL server 2012. I have a feature class called "city" using by a map service. I have a new copy of this feature class with more record from other server. What i did was:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;step 1: stopped the map service;&lt;/P&gt;&lt;P&gt;step 2: changed the feature class name to city_2 &lt;SPAN&gt;successfully&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;step 3: copied and pasted my new update feature class into my SQL database call same name city;&lt;/P&gt;&lt;P&gt;step 4: restarted the map service and tested it to make sure the map service works &lt;SPAN&gt;successfully&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;step 5: deleted the city_2 from the SQL database successfully;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;step 6: Clicked "refresh" the SQL database, but the city_2 feature class came back;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise why I can not delete this old feature class?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom#&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 21:22:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/unable-to-delete-a-feature-class-from-arccatalog/m-p/786476#M1830</guid>
      <dc:creator>tomwang1</dc:creator>
      <dc:date>2016-12-16T21:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to delete a feature class from ArcCatalog</title>
      <link>https://community.esri.com/t5/geodatabase-questions/unable-to-delete-a-feature-class-from-arccatalog/m-p/786477#M1831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;It sounds as though at some point an orphaned record referencing the city_2 feature class has been created / remains in the GDB_ITEMS table within your SQL Server database. A quick way to test would be to connect to the database through your admin connection within SQL Server Management Studio and navigate to the GDB_ITEMS table and either query the table or&amp;nbsp;preview the table and order by Name or PhysicalName fields.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Scroll through the table and see if you can find a record for the city_2 feature class and if necessary / desired you can remove this record and see if the feature class is removed upon refresh in ArcCatalog. As always, it is recommended to either perform this in a test environment (if possible) or at least have a fresh, full database backup created and on hand in the event of a mishap.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I hope this is helpful to you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Rex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 16:03:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/unable-to-delete-a-feature-class-from-arccatalog/m-p/786477#M1831</guid>
      <dc:creator>RexRobichaux2</dc:creator>
      <dc:date>2016-12-21T16:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to delete a feature class from ArcCatalog</title>
      <link>https://community.esri.com/t5/geodatabase-questions/unable-to-delete-a-feature-class-from-arccatalog/m-p/786478#M1832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tom, what tool did you use to delete city_2?&amp;nbsp; &lt;/P&gt;&lt;P&gt;Did you rename City to city_2 using ArcGIS but delete the table via SQL Management Studio?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 19:10:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/unable-to-delete-a-feature-class-from-arccatalog/m-p/786478#M1832</guid>
      <dc:creator>RandyKreuziger</dc:creator>
      <dc:date>2016-12-21T19:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to delete a feature class from ArcCatalog</title>
      <link>https://community.esri.com/t5/geodatabase-questions/unable-to-delete-a-feature-class-from-arccatalog/m-p/786479#M1833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this link if it helps&amp;nbsp;&lt;A class="link-titled" href="http://support.esri.com/technical-article/000011812" title="http://support.esri.com/technical-article/000011812"&gt;How To: Remove orphaned objects (feature classes) from a geodatabase&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 20:25:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/unable-to-delete-a-feature-class-from-arccatalog/m-p/786479#M1833</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2016-12-21T20:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to delete a feature class from ArcCatalog</title>
      <link>https://community.esri.com/t5/geodatabase-questions/unable-to-delete-a-feature-class-from-arccatalog/m-p/786480#M1834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Generally it is not recommended to perform edits from the back end in the system tables, however please make sure you have a full current backup of the database before performing the below queries:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Check if any of the below system tables have entries for city_2 feature class using SQL server management studio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from dbo.GDB_ITEMS where Name = 'Featureclassname'&lt;/P&gt;&lt;P&gt;Select * from SDE_table_registry where table_Name = 'Featureclassname';&lt;/P&gt;&lt;P&gt;Select * from SDE_column_registry where table_Name = 'Featureclassname';&lt;/P&gt;&lt;P&gt;Select * from SDE_geometry_columns where f_table_name = 'Featureclassname';&lt;/P&gt;&lt;P&gt;Select * from SDE_layers where table_name = 'Featureclassname';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) If you are able to find entries in some of the tables, you could try removing them using the following:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete from dbo.GDB_ITEMS where Name = 'Featureclassname';&lt;/P&gt;&lt;P&gt;delete from SDE_table_registry where table_Name = 'Featureclassname';&lt;/P&gt;&lt;P&gt;delete from SDE_column_registry where table_Name = 'Featureclassname';&lt;/P&gt;&lt;P&gt;delete from SDE_geometry_columns where f_table_name = 'Featureclassname';&lt;/P&gt;&lt;P&gt;delete from SDE_layers where table_name = 'Featureclassname';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 23:04:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/unable-to-delete-a-feature-class-from-arccatalog/m-p/786480#M1834</guid>
      <dc:creator>Ahmed_AltafTambe</dc:creator>
      <dc:date>2016-12-21T23:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to delete a feature class from ArcCatalog</title>
      <link>https://community.esri.com/t5/geodatabase-questions/unable-to-delete-a-feature-class-from-arccatalog/m-p/786481#M1835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ahmed, and everyone's help! I am using&amp;nbsp;ArcCatalog to delete the feature class and refreshed in ArcCatalog.&lt;/P&gt;&lt;P&gt;The city_2 is not &amp;nbsp;in&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;GDB_ITEMS, but in other tables:&amp;nbsp;&lt;SPAN&gt;SDE_table_registry,&amp;nbsp;SDE_column_registry,&amp;nbsp;SDE_geometry_columns, and&amp;nbsp;SDE_layers. I am not deleting them for now to use Ahmed's scripts. I will see what I can find out before delete them. I'd like to know the reasoning behind. We have few databases&amp;nbsp;- dev, testing, production e.g. The problem is only in one database. In other databases, I can delete a feature class at same&amp;nbsp;scenario successfully. After deleted a feature class, none of above tables has this record.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 00:56:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/unable-to-delete-a-feature-class-from-arccatalog/m-p/786481#M1835</guid>
      <dc:creator>tomwang1</dc:creator>
      <dc:date>2016-12-22T00:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to delete a feature class from ArcCatalog</title>
      <link>https://community.esri.com/t5/geodatabase-questions/unable-to-delete-a-feature-class-from-arccatalog/m-p/786482#M1836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If that is the Case.....simply create a Table named "&lt;SPAN style="background-color: #ffffff;"&gt;&lt;STRONG&gt;city_2&lt;/STRONG&gt;" using SQL Server Management Studio and then use ArcCatalog to delete that. This should remove the orphaned records.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I'll suggest not trying to delete the Orphaned objects from the database on your own. Rather call Esri Tech Support and let them guide you through the process to avoid any issues.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 05:18:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/unable-to-delete-a-feature-class-from-arccatalog/m-p/786482#M1836</guid>
      <dc:creator>Asrujit_SenGupta</dc:creator>
      <dc:date>2016-12-22T05:18:16Z</dc:date>
    </item>
  </channel>
</rss>

