mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 15:28:34 +01:00
14 lines
383 B
Python
14 lines
383 B
Python
from dvc.exceptions import DvcException
|
|
from dvc.command.common.base import CmdBase
|
|
|
|
|
|
class CmdRemove(CmdBase):
|
|
def run(self):
|
|
for target in self.args.targets:
|
|
try:
|
|
self.project.remove(target)
|
|
except DvcException as ex:
|
|
self.project.logger.error('Failed to remove {}', ex)
|
|
return 1
|
|
return 0
|