--- title: "openfilesquery close-open-file" slug: "openfilesquery-close-open-file" tags: ["5.5"] updated: 2026-10-27T23:00:54Z published: 2026-10-27T23:00:54Z canonical: "docs.vastdata.com/openfilesquery-close-open-file" --- > ## 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 This command closes an open file by its open file ID. ## Usage ```plaintext openfilesquery close-open-file --file-id ID ``` ## Required Parameters | `--file-id ID` | The ID of the open file you want to close. The ID can be obtained with the `openfilesquery list-open-files` command. | | --- | --- | ## Example To close a file with ID 9: ```plaintext openfilesquery close-open-file --file-id 9 ```