So here's my question - does Sitefinity has some kind of job scheduler functionality so I can erase orders automatically after certain period of time?
We will support this from Sitefinity 4.0.
Currently you can create a SQL Scheduled Tasks (Run the SQL Enterprise Manager, Select Server >> Management >> Agent)
Another option is adding some login on application start because it is frequently requested and getting the items Date_Creation ( or Publication_Date), then comparing this value to DateTimeNow. If the difference is more that 5 days delete the item through API.
Sample code with content item object
var cManager =
IList listAll = cManager.GetContent(0, 20,
md = (
//parse the sting to the data time
DateTime ItemDate =
DateTime(y, m, d);
DateTime cTime = DateTime.Now;
TimeSpan timeSpan = cTime.Subtract(ItemDate);
// delete the content if the date is greather than 5 days...
the Telerik team