SyntaxFix
Write A Post
Hire A Developer
Questions
Assuming $WORKING_DIR is set to the directory... this one-liner should do it:
$WORKING_DIR
if [ -d "$WORKING_DIR" ]; then rm -Rf $WORKING_DIR; fi
(otherwise just replace with your directory)