#!/bin/sh
if [ -z $1 ]; then
    echo "Usage: $0 <test-name>"
    exit 1
fi

path=/etc/3d-p/iep-collector/tests.d/"$1"

if [ -f "$path" ]; then
    rm "$path" && {
        echo "$1 removed"
        exit 0
    } || {
        echo "$1 not removed"
        exit 1
    }
else
    echo "$1 is not configured"
    exit 2
fi
