diff --git a/bin/shpkg_ci b/bin/shpkg_ci
index f7bfe27..3b257a8 100755
--- a/bin/shpkg_ci
+++ b/bin/shpkg_ci
@@ -162,4 +162,9 @@ main () {
verbose 2 shpkg_ci_status "shpkg_ci.status" ok
}
+if [ "x$1" = "x--clean" ]; then
+ rm -rf "${SHPKG_CI_DIR}"
+ exit
+fi
+
shpkg_log shpkg_ci main "$@"