Method CacheCleanUp
CacheCleanUp(String, Int32, Boolean)
Cache clean up
Declaration
void CacheCleanUp(string connectionId, int daysToKeep, bool useLastAccesDate)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
System.Int32 | daysToKeep | Define the days to keep the documents. |
System.Boolean | useLastAccesDate | Defines if the use last access date otherwise creation date is used. |
Remarks
- You need "Access to scheme" access right (01002060-38a7-11d8-a902-0050bf427e8f). See also GetUserAdminAccessRights(String, String)
Examples
POST http://YourServerName/InfoShare/Json/Server/CacheCleanUp
Example for cache clean up.{
"connectionId": "e3b3b164-9b0b-4d00-9981-83fe4835df1a",
"daysToKeep": "30",
"useLastAccessDate": true
}
Response:
{ }
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |
ServiceException | Not enough rights ({accessOperationName}, {accessOperationId}) (10071) |