Vultr Storage Gateway (an NFS Gateway for Vultr File System) allows Vultr Bare Metal and Cloud Compute instances to access VFS volumes over NFS. If you no longer want a specific VFS volume exposed through a gateway, you can remove its export configuration. Deleting an export revokes access to the specified volume via NFS for any clients relying on that export, effectively detaching it from the gateway without affecting the underlying VFS volume.
Follow this guide to delete an export for an existing Vultr Storage Gateway using the Vultr API.
Send a GET
request to the List Storage Gateways endpoint to list all configured Storage Gateways. Note the IDs of the Storage Gateway and the export you want to delete.
$ curl "https://api.vultr.com/v2/storage-gateways" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a DELETE
request to the Delete Storage Gateway Export endpoint with the Storage Gateway ID and export ID to remove the specified export.
$ curl "https://api.vultr.com/v2/storage-gateways/<storage-gateway-id>/exports/<export-id>" \
-X DELETE \
-H "Authorization: Bearer ${VULTR_API_KEY}"