> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Clean Method of the Layout Object

This method removes all types of blocks and separators from the layout.

## Syntax

### C++

```cpp theme={null}
HRESULT Clean();
```

### C\#

```csharp theme={null}
void Clean();
```

### Visual Basic .NET

```vb theme={null}
Sub Clean()
```

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## Remarks

This method call is equivalent to subsequent calls of the [DeleteAll](/fine-reader/engine/visual-components-reference/supplementary-objects/spellwordcollection/deleteall-method) methods of the [BlackSeparators](/fine-reader/engine/api-reference/layout-related-objects/layout#blackseparators), [Blocks](/fine-reader/engine/api-reference/layout-related-objects/layout#blocks), and [VisualBlocks](/fine-reader/engine/api-reference/layout-related-objects/layout#visualblocks) (Windows) collections of layout blocks.

## See also

[Layout](/fine-reader/engine/api-reference/layout-related-objects/layout)
