DeleteFileVersions Method
Deletes specific versions of a file.
Required Permissions
FileDeleteConditionalSyntax
public FileDelStatus[] DeleteFileVersions(
System.long[] fileIds
)Public Function DeleteFileVersions( _
ByVal fileIds() As System.Long _
) As FileDelStatus()Parameters
| Name | Description |
|---|---|
| fileIds | An array of file IDs to delete. |
Return Value
A report of which versions have been deleted and which versions have not.
Remarks
Even if a version meets all of the passed in criteria, it does not guarantee that the version will be deleted. Versions linked to Items will not be deleted. Labeled or locked versions will not be deleted. Versions will not be deleted if they are linked to other versions which are not also being deleted. The most recent version cannot be deleted.
If there is no matching return object for a given input file ID, it can be assumed that the version was not deleted.