Cleanup Orphaned Shares
Table of Contents
Use this CLI command to clean up shared space or directory orphans when a shared space or directory is deleted. This cannot be done automatically at the moment.
Command Set Overview
The described command is part of the ocis shares command set:
ocis shares -h
NAME:
ocis shares - CLI tools to manage entries in the share manager.
USAGE:
ocis shares [command options]
CATEGORY:
maintenance
COMMANDS:
cleanup Clean up stale entries in the share manager.
clean-orphaned-grants Detect and clean orphaned share-manager grants.
move-stuck-upload-blobs Move stuck upload blobs to the jsoncs3 share-manager metadata
help, h Shows a list of commands or help for one command
OPTIONS:
--help, -h show help
Command Details
Usage:
ocis shares -h cleanup
NAME:
ocis shares cleanup - clean up stale entries in the share manager.
USAGE:
ocis shares cleanup [command options]
OPTIONS:
--service-account-id value Name of the service account to use for the cleanup [$OCIS_SERVICE_ACCOUNT_ID]
--service-account-secret value Secret for the service account [$OCIS_SERVICE_ACCOUNT_SECRET]
--help, -h show help