#!/usr/bin/env bash ## # description: deletes the specified docker-compose.yml from local storage # usage: deletepod ## function deletepod() { if [[ ! -d "$(getValueByKey 'PODMAN_DIRECTORY')/${1}" ]]; then log e "$1 does not exist on local storage" exit 1 fi rm -rf "$(getValueByKey 'PODMAN_DIRECTORY')/${1}" log s "${1} deleted" exit 0 }