I always seemed to have problems with the PowerShell scripts so for our customer needs I created a simple .aspx script that can be accessible from CMS url. This script allows you to also pack the items you want to delete. For extra caution the items are move first in recycle bin, if everything goes well you can empty the recycle bin.
txtRootId can point to ...
You can achieve this by writing a Powershell script - https://michaellwest.blogspot.com/2014/10/sitecore-powershell-extensions-tip.html?_sm_au_=iVVB4RsPtStf5MfN
Below PowerShell script is for finding media items without reference to any other item. Please have a look.
Lists all media items that are not linked to other items.
The problem was caused by the default "Home" item being deleted.
I removed it thinking it wasn't necessary since it has no child items and none of the sites pointed to this item as their root. Restoring the item from the Recycle Bin fixed the issue. Sitecore support also provided a package should it be needed. More info here: https://support....
The following PowerShell script can be made available as a Web API endpoint within Sitecore. Instructions on how to do this are documented in the script:
# Deploy Media Library artifacts
# https://www.sergevandenoever.nl, https://www.linkedin.com/in/sergevandenoever/
# Deploy Media Library artifacts from a given folder in the App_Data folder to Sitecore.
April 2021 Update:
Sitecore 8.2 Update 4 user here. If you are using Chrome 88 or greater, Flash has officially been removed, essentially breaking this older functionality out-of-the-box. You'll have to rewrite the sc_fv cookie to a value of 9.0.0 or higher in some other way.
This would be basically the same as using a CDN. There is a config file for this in App_Config/Include/Examples/CDN.config.example Basically, the settings you are looking for are:
Media.AlwaysIncludeServerUrl: Ensures that all media links will always include the full server URL
Media.MediaLinkServerUrl: Specifies what the server URL (including the scheme ...