Try our conversational search powered by Generative AI!

Class CleanUnusedAssetsFoldersJob

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Scheduled job that removes content asset folders where the related content has been deleted.

Inheritance
System.Object
CleanUnusedAssetsFoldersJob
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Util
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
[ScheduledPlugIn(GUID = "E652F3BD-F550-40E8-8743-2C39CDA651DC", DisplayName = "Remove Unrelated Content Resources", LanguagePath = "/admin/databasejob/contentassetscleanupjob", HelpFile = "contentassetscleanupjob", DefaultEnabled = true, InitialTime = "1.1:0:0", IntervalLength = 1, IntervalType = ScheduledIntervalType.Weeks, Restartable = true)]
[ServiceConfiguration]
public class CleanUnusedAssetsFoldersJob : ScheduledJobBase, IScheduledJob

Constructors

CleanUnusedAssetsFoldersJob()

Initializes a new instance of the CleanUnusedAssetsFoldersJob class.

Declaration
public CleanUnusedAssetsFoldersJob()

Fields

BatchSize

The number of items that is loaded in a batch.

Declaration
public const int BatchSize = 10
Field Value
Type Description
System.Int32

Methods

Execute()

Execute the job

Declaration
public override string Execute()
Returns
Type Description
System.String
Overrides

OnStatusChanged(String)

Raise a StatusChanged event

Declaration
protected override void OnStatusChanged(string statusMessage)
Parameters
Type Name Description
System.String statusMessage

Status message to report

Overrides

Stop()

Stop the job

Declaration
public override void Stop()
Overrides

Implements

Extension Methods