ds004656/code/killall.sh

15 lines
668 B
Shell
Executable file

#!/bin/bash
#
# if setup went wrong, delete everything
[[ "$(read -e -p 'Are you sure you want to delete everything? [yes_sure!/NO]> '; echo $REPLY)" == yes_sure! ]] && echo KILLALLNOW || exit
# delete wrong input & output RIA stores + aliases
rm -rf /p/project1/icei-hbp-00000000004/ria-qcworkflow/inputstore/2cc/86346-853b-4a9c-8130-5a4693182850
rm -f /p/project1/icei-hbp-00000000004/ria-qcworkflow/inputstore/alias/ds004656-mriqc
rm -rf https://hub.trr379.de/f.hoffstaedter/ds004656-mriqc
rm -f /p/project1/icei-hbp-00000000004/ria-qcworkflow/alias/ds004656-mriqc
# remove faulty dataset
cd ..
datalad drop --what datasets --reckless kill -r -d ds004656-mriqc