ERROR

The following items can’t be deleted because they are delete protected or have dependent items <item name>

Last Published: August 18, 2021

Error Message

In some instances, attempting to delete an item on the My Content page in Portal for ArcGIS returns the following error message in the Delete window:

Error:   
The following items can’t be deleted because they are delete protected or have dependent items. 
<item_name>
The following items can’t be deleted because they are delete protected or have dependent items. <item name>

Occasionally, an information icon is also displayed beside the item name. Hovering over the icon displays the following error message:

Error:   
Unable to delete item. This service item has a related Service item.
Error: Unable to delete item. This service item has a related Service item.

Cause

  • The item is disabled for deletion.
  • There are one or more items dependent on the item.

Solution or Workaround

Depending on the cause, use one or both of the workarounds below to resolve the issue. In this article's example, the Californian_Cities hosted feature layer is the item to delete, and the Californian_Cities_View is dependent on Californian_Cities.

In Portal for ArcGIS, enable the option to delete the item

  1. In Portal for ArcGIS, navigate to Content > My Content.
  2. Click the item's name to open the item details page.
The My Content page to click the item's name to open the item details page.
  1. Click the Settings tab.
  2. Under General and under Delete Protection, uncheck the Prevent this item from being accidentally deleted. check box.
The item details page with the option to enable or disable the 'Prevent this item from being accidentally deleted.' displayed.
  1. Click Save.

In Portal for ArcGIS, delete all the contents dependent on the item

  1. In Portal for ArcGIS, navigate to Content > My Content.
  2. Check the check box to the left of the item's name, and click Delete.
The My Content page in Portal for ArcGIS to check the check box to the left of the item's name to delete the item.
  1. In the Delete dialog box, click Delete.
The Delete dialog box displaying the Delete option.

The image below shows the Californian_Cities hosted feature layer successfully deleted after the dependent item, Californian_Cities_View, is deleted.

The My Content page with no display of the  Californian_Cities hosted feature layer

Article ID: 000026066

Software:
  • Portal for ArcGIS

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options