16 lines
370 B
Bash
16 lines
370 B
Bash
#!/usr/bin/env bash
|
|
|
|
##
|
|
# description: deletes the specified docker-compose.yml from local storage
|
|
# usage: deletepod <pod-name>
|
|
##
|
|
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
|
|
}
|