PROBLEM
Attempts to delete items in ArcGIS Enterprise portal fail, with the following error messages returned in the ArcGIS Server logs:
Error: Unable to remove <item name>.<item extension> from server directory arcgisuploads. Failed to delete the item '<item ID>'. Configuration store error. File system '\\<ArcGIS Server installation location>\arcgisserver\config-store\uploads\<item ID>.json' remove failed. Delete item failed.
Error: Failed to delete the item '<item ID>'. Configuration store error. File system '\\<ArcGIS Server installation location>\arcgissserver\config-store\uploads\<item ID>.json' remove failed. Delete item failed.
Error: com.esri.arcgis.discovery.admin.AdminException: Configuration store error. File system '\\<ArcGIS Server installation location>\arcgisserver\config-store\uploads\<item ID>.json' remove failed. Delete item failed.
The portal index is corrupted, causing the index count for users to not match the store index count. This results in certain item's becoming detached, preventing them from being deleted.
Perform a full reindex from the ArcGIS Portal Administrator Directory.
https://<machine_name>.<domain_name>.com/webadaptor/portaladmin
Get help from ArcGIS experts
Download the Esri Support App