File tree Expand file tree Collapse file tree 1 file changed +2
-21
lines changed
Expand file tree Collapse file tree 1 file changed +2
-21
lines changed Original file line number Diff line number Diff line change @@ -109,30 +109,11 @@ def show_metrics(self) -> str:
109109 result = self ._run_command (["dvc" , "metrics" , "show" ])
110110 return str (result .stdout .strip ())
111111
112- def gc_cache (
113- self , force : bool = False , cloud : bool = False , workspace : bool = True
114- ) -> None :
115- """Clean up unused cache to save disk space
116-
117- Args:
118- force: Force garbage collection without prompting
119- cloud: Also collect garbage in remote storage
120- workspace: Keep files used in current workspace
121- """
112+ def gc_cache (self , force : bool = False ) -> None :
113+ """Clean up unused cache to save disk space"""
122114 cmd = ["dvc" , "gc" ]
123-
124- # Keep files used in current workspace (default behavior)
125- if workspace :
126- cmd .append ("-w" )
127-
128- # Also collect garbage in remote storage
129- if cloud :
130- cmd .append ("-c" )
131-
132- # Force garbage collection without prompting
133115 if force :
134116 cmd .append ("-f" )
135-
136117 self ._run_command (cmd )
137118
138119 def configure (self , section : str , option : str , value : str ) -> None :
You can’t perform that action at this time.
0 commit comments