divekit purge

Delete repositories from configured target groups

Synopsis

Delete all distributed repositories from GitLab target groups.

Removes all repositories created by a distribution from their target groups. Use this to clean up repositories or to reset a distribution completely.

WARNING: This operation is destructive and cannot be undone! All repository content will be permanently deleted.

WHAT HAPPENS:

  1. Reads remotes.json to identify distributed repositories
  2. Shows deletion plan for confirmation
  3. Deletes repositories from target groups

Usage

divekit purge [flags]

Examples

# Purge repositories for a distribution
divekit purge -d ST2M4

# Dry-run to preview what would be deleted
divekit purge -d ST2M4 --dry-run

# Non-interactive mode (requires explicit confirmation)
divekit purge -d ST2M4 --non-interactive

Flags

-d, --distribution string   Distribution name
  -n, --dry-run               Preview what would be deleted (alias for --provider simulated)
  -p, --provider string       Provider: gitlab (default), local, simulated
  -r, --remote string         Remote repository URL (e.g. GitLab instance)
  -t, --token string          GitLab token or token file path (file:///...)

Inherited Flags

-l, --loglevel string   log level (debug, info, warn, error, fatal) (default "info")
      --no-index          skip project index update
      --non-interactive   run in non-interactive mode (fails if interactive input is required)
  -y, --yes               assume yes/default for all prompts (non-interactive with automatic defaults)