[#BloombergLP-bdls-FdStreamBuf_FileHandler-clear] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/FdStreamBuf_FileHandler.adoc[FdStreamBuf_FileHandler]::clear :relfileprefix: ../../../ :mrdocs: Release any file descriptor that may be associated with this file handler. If `isOpened` and `willCloseOnReset` are both `true`, the file descriptor will be closed, otherwise it will be left unchanged. Return 0 on success and a non‐zero value if the close fails. This method succeeds with no effect if `isOpened` was `false`. Note that `fileDescriptor` is always `FilesystemUtil::k_INVALID_FD` after this call. == Synopsis Declared in `<bdls_fdstreambuf.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int clear(); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#