How to delete GDB_ServiceItems table via arcpy?

428
0
07-24-2018 03:56 PM
MarioPalmero
New Contributor II

arccollector‌

How do you remove GDB_ServiceItems table from a geodatabase via arcpy.  I can see the table in Catalog TOC and delete it manually however I want to make "Re-Publishing" as push button as possible.

Background - I download replicas to batch export photos then delete them and table records once they have been written to an external folder/database.  When I open up a replica geodatabase in ArcMap and publish as a service, the web map fails to download for offline use on my device.  When I delete the GDB_ServiceItems table and go through the same process, the download succeeds?  When I tried ListTables() and it does not show up. When I tested with ListFiles() against a gdb with and w/o the ServiceItems, the only difference in files were these three: a0000000e.gdbindexes, a0000000e.gdbtable, a0000000e.gdbtablx - but it doesn't make any difference at this point because I don't know how to delete individual files from a gdb?

Thank you

Tags (1)
0 Kudos
0 Replies