Documentation > CMS Template API Library > Asset > ClearSchedule(String)

ClearSchedule

Clears the schedule date set for the specified asset. The schedule name must match with a schedule name in the workflow for the asset.

public System.Boolean ClearSchedule(String)

Parameters

NameDescriptionType
scheduleName Name of the schedule. System.String

Code Example

C#

Sample:
// Clear the live date, if you had previously scheduled the asset
asset.ClearSchedule("Live Date");

Connect with Crownpeak