> ## 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.

# Close Method of the FRDocument Object

This method releases all the resources that were used by the [FRDocument](/fine-reader/engine/api-reference/document-related-objects/frdocument) object (frees the memory, removes temporary files). The FRDocument object is returned to the initial state — the state of the object after its creation with the [IEngine::CreateFRDocument](/fine-reader/engine/api-reference/engine-object-iengine-interface/creation-methods/createlessobjectgreater-methods) method.

## Syntax

### C++

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

### C\#

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

### Visual Basic .NET

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

## 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

* We recommend that you use this method each time you have finished to work with the current FRDocument object. After the method is called, the object can be reused.
* In Windows: Calling this method for .NET is required. We recommend using it in finally blocks.

## See also

[FRDocument](/fine-reader/engine/api-reference/document-related-objects/frdocument)

[Engine](/fine-reader/engine/api-reference/engine-object-iengine-interface)
