refactor: remove delete volumes

This commit is contained in:
Mauricio Siu
2024-12-23 02:32:43 -06:00
parent ed543e5397
commit 8bfe1632fa

View File

@@ -241,13 +241,7 @@ export const removeService = async (
deleteVolumes = false,
) => {
try {
let command: string;
if (deleteVolumes) {
command = `docker service rm --force ${appName}`;
} else {
command = `docker service rm ${appName}`;
}
const command = `docker service rm ${appName}`;
if (serverId) {
await execAsyncRemote(serverId, command);