PdfStorageAdapterRemoveOldPdfs Method |
Remove PDF data from RAD PDF's
pdfs table older than a given period of time and not in use by a
PdfDocument in storage.
Namespace:
RadPdf.Integration
Assembly:
RadPdf (in RadPdf.dll) Version: 3.48.0.0 (3.48.0.0)
Syntax public void RemoveOldPdfs(
TimeSpan olderThan
)
Public Sub RemoveOldPdfs (
olderThan As TimeSpan
)
Parameters
- olderThan
- Type: SystemTimeSpan
Resources older than this value will be removed from storage.
Remarks
This method is typically used to perform maintenance on the storage provider used by RAD PDF.
This operation may require a substantial amount of time to complete.
olderThan should be a positive TimeSpan value.
Examples
In this example, we run a portion of the RAD PDF maintenance routinue.
If using RAD PDF's storage as temporary cache, a value of about 7 days is typical.
using(PdfStorageAdapter adapter = new PdfStorageAdapter())
{
adapter..RemoveOldPdfs(new TimeSpan(7, 0, 0, 0));
}
See Also