Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Nome
kf delete-space: elimina lo spazio con il nome specificato.
Synopsis
kf delete-space NAME [flags]
Descrizione
Elimina lo spazio con il nome specificato e attendi che venga eliminato.
Kubernetes eliminerà lo spazio una volta eliminate tutte le risorse secondarie di sua proprietà.
L'eliminazione potrebbe richiedere molto tempo se è vera una delle seguenti condizioni:
Esistono molti oggetti secondari.
Nell'oggetto sono presenti finalizzatori che ne impediscono l'eliminazione.
Il cluster non è in uno stato ottimale.
Se elimini uno spazio, vengono eliminati anche:
App
Cronologia build
Associazioni dei servizi
Istanze di servizio
Route
Lo spazio dei nomi Kubernetes di supporto
Risorse Kubernetes nello spazio dei nomi
Una volta avviata l'eliminazione, non potrai apportare modifiche alle risorse nello spazio.
Esempi
kf delete-space my-space
Flag
--async
Non attendere il completamento dell'azione sul server prima di tornare.
-h, --help
Guida per delete-space
--retries=int
Numero di volte per ripetere l'esecuzione se il comando non va a buon fine. (valore predefinito 5)
--retry-delay=duration
Imposta il ritardo tra i tentativi. (valore predefinito 1s)
Flag ereditati
Questi flag vengono ereditati dai comandi principali.
--as=string
Nome utente da rubare per l'operazione.
--as-group=strings
Gruppo da simulare per l'operazione. Includi questo flag più volte per specificare più gruppi.
--config=string
Percorso del file di configurazione Kf da utilizzare per le richieste dell'interfaccia a riga di comando.
--kubeconfig=string
Percorso del file kubeconfig da utilizzare per le richieste della CLI.
--log-http
Registra le richieste HTTP nell'errore standard.
--space=string
Spazio in cui eseguire il comando. Questo flag sostituisce lo spazio attualmente scelto come target.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-04 UTC."],[],[],null,["# kf delete-space\n\n### Name\n\n`kf delete-space` - Delete the Space with the given name.\n\n### Synopsis\n\n```\nkf delete-space NAME [flags]\n```\n\n### Description\n\nDeletes the Space with the given name and wait for it to be deleted.\n\nKubernetes will delete the Space once all child resources it owns have been deleted.\nDeletion may take a long time if any of the following conditions are true:\n\n- There are many child objects.\n- There are finalizers on the object preventing deletion.\n- The cluster is in an unhealthy state.\n\nDeleting a Space will also delete its:\n\n- Apps\n- Build history\n- Service bindings\n- Service instances\n- Routes\n- The backing Kubernetes Namespace\n- Kubernetes resources in the Namespace\n\nYou will be unable to make changes to resources in the Space once deletion\nhas begun.\n\n### Examples\n\n```\nkf delete-space my-space\n```\n\n### Flags\n\n`--async`\n\n: Do not wait for the action to complete on the server before returning.\n\n`-h, --help`\n\n: help for delete-space\n\n`--retries=`\u003cvar translate=\"no\"\u003eint\u003c/var\u003e\n\n: Number of times to retry execution if the command isn't successful. (default 5)\n\n`--retry-delay=`\u003cvar translate=\"no\"\u003eduration\u003c/var\u003e\n\n: Set the delay between retries. (default 1s)\n\n### Inherited flags\n\nThese flags are inherited from parent commands.\n\n`--as=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n\n: Username to impersonate for the operation.\n\n`--as-group=`\u003cvar translate=\"no\"\u003estrings\u003c/var\u003e\n\n: Group to impersonate for the operation. Include this flag multiple times to specify multiple groups.\n\n`--config=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n\n: Path to the Kf config file to use for CLI requests.\n\n`--kubeconfig=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n\n: Path to the kubeconfig file to use for CLI requests.\n\n`--log-http`\n\n: Log HTTP requests to standard error.\n\n`--space=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n\n: Space to run the command against. This flag overrides the currently targeted Space."]]