<xml> </xml>

SOLIDWORKS PDM Professional API Help | Send Feedback
IEdmBatchDelete Interface
See Also Members Example

Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: Visual Basic Language Filter: C# Language Filter: C++/CLI

EPDM.Interop.epdm Namespace : IEdmBatchDelete Interface

Visual Basic
C#
C++/CLI

Allows you to delete several files and folders from the vault at once.

NOTE: Click the Members link, located near the top of the topic, to see this interface's methods and properties.

# Syntax

Visual Basic |
--- | ---

    Public Interface IEdmBatchDelete

C# |
--- | ---

    public interface IEdmBatchDelete

C++/CLI |
--- | ---

    public interface class IEdmBatchDelete

# Example

Batch Delete Files and Folders from Vault (VB.NET)
Batch Delete Files and Folders from Vault (C#)

# Remarks

This interface:

- inherits from IDispatch. See IDispatch Interface (Automation).
- is extended by IEdmBatchDelete2.

To delete several files and folders from the vault at once:

1. Access this interface by calling IEdmVault7::CreateUtility, passing EdmUtility.EdmUtil_BatchDelete as a parameter.
2. Call IEdmBatchDelete::AddFileByID, IEdmBatchDelete::AddFileByPath, or IEdmBatchDelete::AddFolder one or more times to add files and folders to the batch for deletion.
3. Call IEdmBatchDelete::ComputePermissions to prepare the delete operation.
4. Optionally call IEdmBatchDelete2::ShowWarningDlg2 to display a message about any errors found in step 3.
5. Call IEdmBatchDelete::CommitDelete to delete the files and folders added to the batch.
6. Optionally call IEdmBatchDelete::ShowCommitErrorsDlg or IEdmBatchDelete3::GetCommitErrors to get any errors that might have occurred in step 5.

Using IEdmBatchDelete is more efficient than calling IEdmFolder5::DeleteFile or IEdmFolder5::DeleteFolder multiple times.

# Accessors

IEdmVault7::CreateUtility

# See Also

####

IEdmBatchDelete Members
EPDM.Interop.epdm Namespace