Skip to content

Commit b47c037

Browse files
committed
revert to old gc_cache
1 parent 29e05a1 commit b47c037

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

api/managers/dvc_manager.py

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)