mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
refactor: remove delete volumes
This commit is contained in:
@@ -241,13 +241,7 @@ export const removeService = async (
|
|||||||
deleteVolumes = false,
|
deleteVolumes = false,
|
||||||
) => {
|
) => {
|
||||||
try {
|
try {
|
||||||
let command: string;
|
const command = `docker service rm ${appName}`;
|
||||||
|
|
||||||
if (deleteVolumes) {
|
|
||||||
command = `docker service rm --force ${appName}`;
|
|
||||||
} else {
|
|
||||||
command = `docker service rm ${appName}`;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (serverId) {
|
if (serverId) {
|
||||||
await execAsyncRemote(serverId, command);
|
await execAsyncRemote(serverId, command);
|
||||||
|
|||||||
Reference in New Issue
Block a user