mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-12 20:15:36 +00:00
Feat: Delete unused private keys button
This commit is contained in:
5 files changed
+49
-35
No files matched your search
@@ -218,4 +218,11 @@ class PrivateKey extends BaseModel
|
||||
|
||||
return $query->exists();
|
||||
}
|
||||
|
||||
public static function cleanupUnusedKeys()
|
||||
{
|
||||
self::all()->each(function ($privateKey) {
|
||||
$privateKey->safeDelete();
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user