refactor(settings): remove unused cleanupFullDocker function and streamline imports

This commit is contained in:
Mauricio Siu
2025-12-06 17:54:25 -06:00
parent f91a3aab25
commit 9394d97163

View File

@@ -1,6 +1,7 @@
import { readdirSync } from "node:fs";
import { join } from "node:path";
import { docker } from "@dokploy/server/constants";
import { cleanupAll } from "@dokploy/server/utils/docker/utils";
import {
execAsync,
execAsyncRemote,
@@ -10,7 +11,6 @@ import {
initializeTraefikService,
type TraefikOptions,
} from "../setup/traefik-setup";
import { cleanupAll } from "@dokploy/server/utils/docker/utils";
export interface IUpdateData {
latestVersion: string | null;
@@ -216,14 +216,6 @@ echo "$json_output"
return result;
};
/**
* This function is not currently used anywhere, but it remains here because removing it would be risky.
*
* https://github.com/Dokploy/dokploy/pull/3064
* https://github.com/fir4tozden
*/
export const cleanupFullDocker = cleanupAll;
export const getDockerResourceType = async (
resourceName: string,
serverId?: string,