mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-05 23:09:32 +01:00
14 lines
407 B
Python
14 lines
407 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 {}: {}'.format(target, str(ex)))
|
|
return 1
|
|
return 0
|