--- title: "openfilesquery close-open-file-handle" slug: "openfilesquery-close-open-file-handle" updated: 2026-10-27T17:24:31Z published: 2026-10-27T17:24:31Z canonical: "docs.vastdata.com/openfilesquery-close-open-file-handle" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.vastdata.com/llms.txt > Use this file to discover all available pages before exploring further. # openfilesquery close-open-file-handle # This command closes a particular open file handle. Before using this command: 1. Run `openfilesquery list-open-files` to obtain the file ID of the file for which you want to list open handles. 2. Run `openfilesquery query-open-file-handles` to retrieve a list of open handles for the file ID. 3. Run `openfilesquery list-open-file-handles` to obtain the ID of the file handle that you want to close. ## Usage ```plaintext openfilesquery close-open-file-handle --file-handle-id ID ``` ## Required Parameters | `--file-handle-id ID` | The ID of the open file handle you want to close. The file handle ID can be obtained from the ID field of `openfilesquery list-open-file-handles` command output. | | --- | --- | ## Example To close file handle with ID 7: ```plaintext vcli: admin> openfilesquery close-open-file-handle --file-handle-id 7 ```