DataEngine for .NET Standard | ComponentOne
C1.DataEngine Assembly / C1.DataEngine Namespace / Workspace Class / Clear Method / Clear(ClearFileType) Method
Type of the data files to delete.

In This Topic
    Clear(ClearFileType) Method
    In This Topic
    Deletes data files from disk.
    Syntax
    'Declaration
     
    Public Overloads Sub Clear( _
       Optional ByVal type As ClearFileType _
    ) 
    public void Clear( 
       ClearFileType type
    )

    Parameters

    type
    Type of the data files to delete.
    Remarks

    If ClearFileType.All is used (which is the default, meaning all tables are removed from workspace), all data and structure information is deleted, workspace is wiped clean. Use it with caution.

    Other ClearFileType flags (or their combinations) are used for manual disk cleanup, deleting data files created in calculations. Manual disk cleanup is an advanced feature. Use it only if the default automatic disk cleanup with KeepFiles property is not enough for your scenario.

    See Also