Autodesk Vault ProfessionalVault API

DeleteFilesFromFolder Method

Autodesk.Connectivity.WebServicesDocumentService

Deletes multiple files.

Required Permissions

FileDeleteConditional

Syntax

public override void DeleteFilesFromFolder(
   System.long[] fileMasterIds,
   System.long folderId
)
Public Overrides NotOverridable Sub DeleteFilesFromFolder( _
   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

This method will fail if there are delete restrictions on any of the files. 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