Autodesk Vault ProfessionalVault API

DeleteFilesFromFolderUnconditional Method

Autodesk.Connectivity.WebServicesDocumentService

Deletes multiple files unconditionally.

Required Permissions

FileDeleteUnconditional

Syntax

public override void DeleteFilesFromFolderUnconditional(
   System.long[] fileMasterIds,
   System.long folderId
)
Public Overrides NotOverridable Sub DeleteFilesFromFolderUnconditional( _
   ByVal fileMasterIds() As System.Long, _
   ByVal folderId As System.Long _
) 

Parameters

NameDescription
fileMasterIdsAn array of files to delete.
folderIdThe folder to delete from.

Return Value

Nothing.

Remarks

The method will delete a file even if there are delete restrictions on that file. This method will fail if there are delete restrictions and the user is not logged in as an administrator. This method deletes the files one at a time from the Vault. If one of the deletes fails, the operation will abort. Depending on when the error is thrown, some files may be deleted while others may still be in the Vault.

See Also