AIStor Files
Manage exports

mc files export remove

Stop serving an export.

mc files export remove stops serving an export. rm is a short form of remove.

Removal is not deletion. The export stops serving, and its data and metadata stay. No mc files export command can reach them again: adding the same name creates a new, empty export. AIStor cannot delete a removed export's data yet.

Syntax

mc files export remove ALIAS EXPORT [--force]

Flags

FlagMeaning
--forceRequired when the export is serving, fenced, or unreachable. The node ends the state of the export's clients when it takes the remove.

A pending export needs no flag. mc also has --purge and --dangerous to delete the data, but AIStor refuses them.

Examples

Remove a pending export:

mc files export remove myaistor carol

Remove a serving export. Unmount it on every client first:

mc files export remove myaistor carol --force
Removed export `carol` (id 104), without asking to delete its data.

What happens

The remove completes when the node takes it. Until then the export lists as removing, and its name and pseudo path stay taken.

When the node does not answer, the export stays removing, and mc exits non-zero. Run the remove again to complete it. When the node refuses the first remove, AIStor puts the export back as it was, and mc prints the node's reason.