Moving & Removing
Moving Files
Section titled “Moving Files”gda mv sub-01/meg/run.fif sub-01/meg/run-01.fifGDA renames the symlink in your project folder and updates the index. The object in the store stays unchanged (the hash is the same).
Moving Directories
Section titled “Moving Directories”gda mv bids/raw/ bids/sourcedata/All files under bids/raw/ are moved to bids/sourcedata/ in one operation. Instant — no content copies.
Safety Check
Section titled “Safety Check”GDA verifies the source is a symlink pointing to a valid object before moving. If a file has been modified or unlocked, the move is rejected:
safety abort: sub-01/meg/run.fif is not a symlink.It may be modified or unlocked. Run 'gda add' first.Removing Files
Section titled “Removing Files”gda rm sub-01/meg/run.fifgda rm sub-02/beh/sub-02_beh.tsvRemoves the symlink from your project folder and removes the index entry. The object remains in the store — other snapshots may still reference it.
Garbage Collection
Section titled “Garbage Collection”After removing files, run gda gc to clean up unreferenced objects:
gda gc --dry-run # See what would be removedgda gc # Actually remove unreferenced objectsObjects younger than 1 hour are never deleted (grace period).