--- title: "openfilesquery close-open-file" slug: "openfilesquery-close-open-file" tags: ["5.4"] updated: 2026-10-28T01:53:01Z published: 2026-10-28T01:53:01Z 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. **NOTE**: This command is available starting with VAST Cluster 5.4.1. ## 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-file`s command. | | --- | --- | ## Example To close a file with ID 9: ```plaintext openfilesquery close-open-file --file-id 9 ```