apidocs

PurgeRecycleBinItem API

Permanently and irreversibly deletes a single document or folder from the system Recycle Bin. The item is identified by its Handler value, which is obtained from GetRecycleBinContent. Use this API to selectively remove individual items rather than emptying the entire bin. This is an administrator-only operation.

Endpoint


/srv.asmx/PurgeRecycleBinItem

Methods

Parameters

Parameter Type Required Description
AuthenticationTicket string Yes Authentication ticket obtained from AuthenticateUser. The authenticated user must be a system administrator.
ItemHandler string Yes Handler string identifying the recycled item to purge. Obtained from the Handler attribute of a <document> or <folder> element returned by GetRecycleBinContent. Format: D{id} for a document (e.g. D9871), F{id} for a folder (e.g. F4312). Case-insensitive.

Response

Success Response


<response success="true" error="" />

Error Response


<response success="false" error="Invalid ItemHandler" />

Partial Failure Response

If the item cannot be purged (e.g. a storage error for one file within a folder), a log response is returned:


<response success="false" error="[log]">

  <logitem name="Q1-2024-Report.pdf" message="Unable to delete file from storage." />

</response>


Required Permissions

System administrators only. Regular users and domain managers cannot call this API. Attempting to call it as a non-administrator returns a permission error.


Example

GET Request


GET /srv.asmx/PurgeRecycleBinItem

  ?AuthenticationTicket=3f2504e0-4f89-11d3-9a0c-0305e82c3301

  &ItemHandler=D9871

HTTP/1.1

POST Request


POST /srv.asmx/PurgeRecycleBinItem HTTP/1.1

Content-Type: application/x-www-form-urlencoded



AuthenticationTicket=3f2504e0-4f89-11d3-9a0c-0305e82c3301

&ItemHandler=D9871

SOAP Request


<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"

               xmlns:tns="http://tempuri.org/">

  <soap:Body>

    <tns:PurgeRecycleBinItem>

      <tns:AuthenticationTicket>3f2504e0-4f89-11d3-9a0c-0305e82c3301</tns:AuthenticationTicket>

      <tns:ItemHandler>D9871</tns:ItemHandler>

    </tns:PurgeRecycleBinItem>

  </soap:Body>

</soap:Envelope>


Notes



Error Codes

Error Description
[900] Authentication failed Invalid or missing authentication ticket.
[901] Session expired or Invalid ticket The ticket has expired or does not exist.
Invalid ItemHandler The ItemHandler string is empty, cannot be parsed, or refers to an unsupported object type.
Document is no longer in the recycle bin. The document identified by the handler has already been purged or restored.
Folder is no longer in the recycle bin. The folder identified by the handler has already been purged or restored.
Only the system administrator can perform this operation The authenticated user is not a system administrator.
SystemError:... An unexpected server-side error occurred.