Splitgraph has been acquired by EDB! Read the blog post.

sgr prune


Cleanup dangling images from a repository.

This includes images not pointed to by any tags (or checked out) and those that aren't required by any of such images.

Will ask for confirmation of the deletion, unless -y is passed. If -r (--remote) is passed, this will perform deletion on a remote Splitgraph engine (registered in the config) instead, assuming the user has write access to the remote repository.

This does not delete any physical objects that the deleted repository/images depend on: use sgr cleanup to do that.


  • -r, --remote []: Perform operation on a different remote engine
  • -y, --yes: Agree to deletion without confirmation

Table of contents