<?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 Re: Hosted Feature Layer - delete one of the layers within it? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-delete-one-of-the-layers/m-p/1611274#M64615</link>
    <description>&lt;P&gt;This is a very old post, but as far as I'm concerned, if posts like this still show up in a Google search, then it's still relevant! Thank you&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/606364"&gt;@mikaël&lt;/a&gt;&amp;nbsp;for getting me on the right track - it's important to do it with the REST API, modifying the JSON through ArcGIS Online Assistant did not fully delete the layer from the service (I found that it removed it from the Item Details page, but when viewing the service definition, the item was still there. I think AGOL Assistant only removes it from part of the JSON)&lt;BR /&gt;&lt;BR /&gt;Anyway, I'm writing this post to share a script I wrote to put this functionality into a Python tool that can be run in ArcGIS Pro. I hope it maybe helps someone with this process, especially those who don't have a lot of experience with working with the API.&lt;/P&gt;&lt;P&gt;Regarding toolbox setup, add this script and set the Parameters like this, and it should work like a charm.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Katie_Clark_0-1746217080344.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/131392i17DC9AFB22AC7CE0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Katie_Clark_0-1746217080344.png" alt="Katie_Clark_0-1746217080344.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS
from arcgis.features import FeatureLayerCollection
import arcpy

# Tool input parameters

item_id = arcpy.GetParameterAsText(0)  # String (required)
layer_id = arcpy.GetParameter(1)  # Long (required)


def main():
    gis = GIS("home")  # Uses ArcGIS Pro sign-in session

    item = gis.content.get(item_id)

    fs = FeatureLayerCollection.fromitem(item)

    layer_ids = [lyr.properties.id for lyr in fs.layers]
    arcpy.AddMessage(f"Available Layer IDs: {layer_ids}")

    if layer_id not in layer_ids:
        arcpy.AddWarning(f"Layer ID {layer_id} does not exist in the feature service.")

    delete_payload = {
        "layers": [
            {"id": layer_id}
        ]
    }

    try:
        result = fs.manager.delete_from_definition(delete_payload)
        if result['success']:
            arcpy.AddMessage(f"Successfully deleted layer ID {layer_id}.")
    except Exception as e:
        arcpy.AddError(f"Error: {e}")


if __name__ == "__main__":
    main()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 May 2025 20:19:39 GMT</pubDate>
    <dc:creator>Katie_Clark</dc:creator>
    <dc:date>2025-05-02T20:19:39Z</dc:date>
    <item>
      <title>Hosted Feature Layer - delete one of the layers within it?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-delete-one-of-the-layers/m-p/244141#M12055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a hosted feature layer that has 16 layers within it. I want to delete the first layer but I would like to avoid having to delete the whole service and republishing from ArcMap because this layer is live and there are edits being made on it. I would have to download the data in fgb and then repath that data in my ArcMap mxd and then republish. Then I would probably have to recreate the web map and the web app because I have had problems in the past of my existing web maps and apps reading any changes to my feature layers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What about this blog and PDF referenced in blog? &lt;A href="https://blogs.esri.com/esri/arcgis/2014/10/19/updating-hosted-feature-services-in-arcgis-online/"&gt;https://blogs.esri.com/esri/arcgis/2014/10/19/updating-hosted-feature-services-in-arcgis-online/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;PDF referenced in blog: &lt;A href="https://blogs.esri.com/esri/arcgis/files/2014/10/How-to-Update-Hosted-Feature-Service-Schemas1.pdf"&gt;https://blogs.esri.com/esri/arcgis/files/2014/10/How-to-Update-Hosted-Feature-Service-Schemas1.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the service URL of the layer I want to delete I see, "Delete from Definition". But does that just delete a few fields in that layer and not the layer itself?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="delete from definition.JPG" class="image-1 jive-image" src="/legacyfs/online/172144_delete from definition.JPG" style="width: 620px; height: 115px;" /&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2016 17:14:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-delete-one-of-the-layers/m-p/244141#M12055</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-01-22T17:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Hosted Feature Layer - delete one of the layers within it?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-delete-one-of-the-layers/m-p/244142#M12056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a solution for this? Still do not see a way to delete a single layer within a Feature Service on ArcMap online. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2019 19:27:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-delete-one-of-the-layers/m-p/244142#M12056</guid>
      <dc:creator>New_RiverLand_Trust</dc:creator>
      <dc:date>2019-01-23T19:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Hosted Feature Layer - delete one of the layers within it?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-delete-one-of-the-layers/m-p/244143#M12057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;Andrea,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this finds you well!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, there isn't a way to get rid of one or more layers within a Hosted Feature Service without deleting and republishing the service OR using ArcGIS Online Assistant (&lt;A class="link-titled" href="https://ago-assistant.esri.com/" title="https://ago-assistant.esri.com/"&gt;ArcGIS Online Assistant&lt;/A&gt;). If you wish to use ArcGIS Online Assistant, I would recommend making a copy of the service before you make any changes. You should proceed with caution using this workflow, as if its not done correctly, problems may occur with the service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the workflow for using ArcGIS Online Assistant:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;In ArcGIS Online, go to the Item Details of your Hosted Feature Service. Select the particular layer you'd like to remove and it should take you to a URL similar to this:&amp;nbsp;&lt;A class="unlinked"&gt;https://services.arcgis.com/Wl7Y1m92PbjtJs5n/arcgis/rest/services/test_remove_layer/FeatureServer/0&lt;/A&gt;&amp;nbsp;&lt;UL&gt;&lt;LI&gt;The /FeatureServer/0 is important, as you'll need to know this specific number later.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Once you know the specific number of the layer within your Hosted Feature Service, we can move over to ArcGIS Online Assistant.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Sign in with your ArcGIS Online credentials.&lt;/LI&gt;&lt;LI&gt;At the top,&amp;nbsp;select&amp;nbsp;"I want to..." and then select "View an Item's JSON".&lt;/LI&gt;&lt;LI&gt;On the left-hand side, navigate to your Hosted Feature Service that needs alteration and select it. You'll notice&amp;nbsp;the service&amp;nbsp;JSON populate on the right-hand side.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Scroll down to the start of the "Data" section of the JSON. Start to look for "id" : 0, "id" : 1, "id": 2, etc.&amp;nbsp;Look for the id number that corresponds with the number in the URL (from step 1), this is the id we're going to remove.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;At the top of the Data section, select the "pencil" icon to start editing. Start with the&amp;nbsp;open bracket above "id" : # and highlight all the way down to the close&amp;nbsp;bracket of the section. Proceed to delete this section and make sure the JSON brackets are aligned correctly before saving the section.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;After you've deleted the section, this specific layer will be deleted and you should be good to go.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know it's a long one, but if you wish to take on this specific workflow, I've recorded myself performing the workflow. You can access the video here:&amp;nbsp;&lt;A class="jivelink12" href="https://www.screencast.com/t/QlDosHbdNJ" title="https://www.screencast.com/t/QlDosHbdNJ"&gt;https://www.screencast.com/t/QlDosHbdNJ&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2019 00:54:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-delete-one-of-the-layers/m-p/244143#M12057</guid>
      <dc:creator>JoeCatanzarita1</dc:creator>
      <dc:date>2019-01-24T00:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Hosted Feature Layer - delete one of the layers within it?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-delete-one-of-the-layers/m-p/244144#M12058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hope this isn't a silly question, but how am I supposed to make a copy of the service?&amp;nbsp; I can save as a new map, but how do I create a copy of the service?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2019 19:30:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-delete-one-of-the-layers/m-p/244144#M12058</guid>
      <dc:creator>PersefoniKapotas</dc:creator>
      <dc:date>2019-11-25T19:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Hosted Feature Layer - delete one of the layers within it?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-delete-one-of-the-layers/m-p/244145#M12059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joe, thanks for this solution, it seems to work well and not too complex.&lt;/P&gt;&lt;P&gt;But I have a problem : some of my hosted feature layers have this "Data" section, but for others this section doesn't exist&amp;nbsp; at all or is empty ! And obviously the hosted feature service from which I want to delete a layer doesn't have this "Data" section &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How can I access this "Data" section ?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Alain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Apr 2020 12:35:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-delete-one-of-the-layers/m-p/244145#M12059</guid>
      <dc:creator>AlainChouinard</dc:creator>
      <dc:date>2020-04-25T12:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Hosted Feature Layer - delete one of the layers within it?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-delete-one-of-the-layers/m-p/244146#M12060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joe,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for this! I just have one question. After removing the layer from the JSON, should the subsequent layers be renumbered? I.e. if I remove "id": 3, should "id": 4 become 3?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2020 14:41:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-delete-one-of-the-layers/m-p/244146#M12060</guid>
      <dc:creator>MatthewMaloney</dc:creator>
      <dc:date>2020-05-05T14:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Hosted Feature Layer - delete one of the layers within it?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-delete-one-of-the-layers/m-p/1178207#M46220</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/375582"&gt;@JoeCatanzarita1&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/153545"&gt;@AlainChouinard&lt;/a&gt;&amp;nbsp;Did you find a way to see the data section? I am having the same problem.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 May 2022 17:31:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-delete-one-of-the-layers/m-p/1178207#M46220</guid>
      <dc:creator>JenLangevin</dc:creator>
      <dc:date>2022-05-29T17:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Hosted Feature Layer - delete one of the layers within it?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-delete-one-of-the-layers/m-p/1178305#M46226</link>
      <description>&lt;P&gt;Hi Jen,&lt;/P&gt;&lt;P&gt;No I didn't... Finaly I renamed this layer as xxx_Old and is still in the Feature Layer.&lt;/P&gt;&lt;P&gt;Alain&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 10:44:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-delete-one-of-the-layers/m-p/1178305#M46226</guid>
      <dc:creator>AlainChouinard</dc:creator>
      <dc:date>2022-05-30T10:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Hosted Feature Layer - delete one of the layers within it?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-delete-one-of-the-layers/m-p/1195307#M47090</link>
      <description>&lt;P&gt;Recently, the URL scheme of AGOL has changed to:&amp;nbsp;https:/&amp;lt;your org&amp;gt;.maps.arcgis.com/home/item.html?id=&amp;lt;itemid&amp;gt; &amp;amp;sublayer=&amp;lt;your sublayer&amp;gt; &amp;amp;view=service (which is great because they now include de service id).&lt;/P&gt;&lt;P&gt;but the workflow still works. However, don't forget to delete the "," from the layer above the deleted layer if that is the last one.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 06:38:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-delete-one-of-the-layers/m-p/1195307#M47090</guid>
      <dc:creator>PeterGoedbloed1</dc:creator>
      <dc:date>2022-07-25T06:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Hosted Feature Layer - delete one of the layers within it?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-delete-one-of-the-layers/m-p/1230982#M48850</link>
      <description>&lt;P&gt;You are trying to delete a layer inside a feature service, correct?&lt;/P&gt;&lt;P&gt;I have done this multiple times with the &lt;A href="https://developers.arcgis.com/rest/services-reference/online/delete-from-definition-feature-service-.htm" target="_self"&gt;deleteFromDefinition endpoint&lt;/A&gt; of the REST API.&lt;/P&gt;&lt;P&gt;You can write a json similar to this on the html page if you are not familiar with API calls.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
     "layers": [{"id": 7}] // layer id
}&lt;/LI-CODE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mikAMD_0-1668198316256.png" style="width: 588px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/55835iE490E66761CFE090/image-dimensions/588x332?v=v2" width="588" height="332" role="button" title="mikAMD_0-1668198316256.png" alt="mikAMD_0-1668198316256.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 11 Nov 2022 20:25:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-delete-one-of-the-layers/m-p/1230982#M48850</guid>
      <dc:creator>mikaël</dc:creator>
      <dc:date>2022-11-11T20:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Hosted Feature Layer - delete one of the layers within it?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-delete-one-of-the-layers/m-p/1611274#M64615</link>
      <description>&lt;P&gt;This is a very old post, but as far as I'm concerned, if posts like this still show up in a Google search, then it's still relevant! Thank you&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/606364"&gt;@mikaël&lt;/a&gt;&amp;nbsp;for getting me on the right track - it's important to do it with the REST API, modifying the JSON through ArcGIS Online Assistant did not fully delete the layer from the service (I found that it removed it from the Item Details page, but when viewing the service definition, the item was still there. I think AGOL Assistant only removes it from part of the JSON)&lt;BR /&gt;&lt;BR /&gt;Anyway, I'm writing this post to share a script I wrote to put this functionality into a Python tool that can be run in ArcGIS Pro. I hope it maybe helps someone with this process, especially those who don't have a lot of experience with working with the API.&lt;/P&gt;&lt;P&gt;Regarding toolbox setup, add this script and set the Parameters like this, and it should work like a charm.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Katie_Clark_0-1746217080344.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/131392i17DC9AFB22AC7CE0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Katie_Clark_0-1746217080344.png" alt="Katie_Clark_0-1746217080344.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS
from arcgis.features import FeatureLayerCollection
import arcpy

# Tool input parameters

item_id = arcpy.GetParameterAsText(0)  # String (required)
layer_id = arcpy.GetParameter(1)  # Long (required)


def main():
    gis = GIS("home")  # Uses ArcGIS Pro sign-in session

    item = gis.content.get(item_id)

    fs = FeatureLayerCollection.fromitem(item)

    layer_ids = [lyr.properties.id for lyr in fs.layers]
    arcpy.AddMessage(f"Available Layer IDs: {layer_ids}")

    if layer_id not in layer_ids:
        arcpy.AddWarning(f"Layer ID {layer_id} does not exist in the feature service.")

    delete_payload = {
        "layers": [
            {"id": layer_id}
        ]
    }

    try:
        result = fs.manager.delete_from_definition(delete_payload)
        if result['success']:
            arcpy.AddMessage(f"Successfully deleted layer ID {layer_id}.")
    except Exception as e:
        arcpy.AddError(f"Error: {e}")


if __name__ == "__main__":
    main()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2025 20:19:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-delete-one-of-the-layers/m-p/1611274#M64615</guid>
      <dc:creator>Katie_Clark</dc:creator>
      <dc:date>2025-05-02T20:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Hosted Feature Layer - delete one of the layers within it?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-delete-one-of-the-layers/m-p/1691271#M68221</link>
      <description>&lt;P&gt;Outstanding, thanks Katie! This saved me a TON of time and works perfectly.&amp;nbsp;&lt;SPAN&gt;10 points to Gryffindor.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2026 15:20:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-delete-one-of-the-layers/m-p/1691271#M68221</guid>
      <dc:creator>DaveTaylor011</dc:creator>
      <dc:date>2026-03-18T15:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Hosted Feature Layer - delete one of the layers within it?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-delete-one-of-the-layers/m-p/1700389#M68629</link>
      <description>&lt;P&gt;Katie, I copied your script, made a tool in an ArcPro toolbox out of it, then used it to delete 2 of the 5 layers in a hosted feature layer, and it worked perfectly!&amp;nbsp; I don't see any trace of the deleted layers in the JSON and of course they're no longer in the layers list in the overview of the feature layer.&amp;nbsp; I also added the modified feature layer to a web map and was able to collect and sync data in Field Maps, so the layer deletes had no impact on the ability to edit the remaining layers.&amp;nbsp; Thanks for the script - nicely done!&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2026 16:25:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-delete-one-of-the-layers/m-p/1700389#M68629</guid>
      <dc:creator>akthers</dc:creator>
      <dc:date>2026-05-06T16:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Hosted Feature Layer - delete one of the layers within it?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-delete-one-of-the-layers/m-p/1701649#M68661</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/232739"&gt;@Katie_Clark&lt;/a&gt;&amp;nbsp;, I needed this today! It gives me a warning when it doesn't need to but it still deleted the layer, so I'll take it. Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2026 21:14:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-delete-one-of-the-layers/m-p/1701649#M68661</guid>
      <dc:creator>AndreaB_</dc:creator>
      <dc:date>2026-05-12T21:14:16Z</dc:date>
    </item>
  </channel>
</rss>

