[]
        
(Showing Draft Content)

C1.DataEngine.Workspace.Clear

Clear Method

Clear(ClearFileType)

Deletes data files from disk.

Declaration
public void Clear(ClearFileType type = ClearFileType.All)
Parameters
Type Name Description
ClearFileType 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.

Clear(string, ClearFileType)

Deletes data files of a table from disk.

Declaration
public void Clear(string tableName, ClearFileType type = ClearFileType.All)
Parameters
Type Name Description
string tableName

Name of the table to delete.

ClearFileType type

Type of the data files to delete.

Remarks

If ClearFileType.All is used (which is the default, meaning the table is removed from workspace), original table data and structure information for that table is deleted together with calculated data based on that table. Use it with caution. It can also be used creating a new table to ensure that it did not exist before.

Other ClearFileType flags (or their combinations) are used for manual disk cleanup, deleting data files created in calculations based on that table. 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.