Delete an Edge site
Delete an old or unused Edge site from Collibra Platform Self-Hosted. If you need to remove the data you previously ingested with this Edge site, you must delete that data manually.
Prerequisites
- You have a global role that has the Manage Edge sites global permission.
- You have created an Edge site.
How to delete an Edge site installed on bundled k3s
Prerequisites
- You created an Edge site.
- You have a global role that has the Manage Edge sites global permission.
- Ensure that your environment uses the latest user interface.
Steps
- Open a site.
-
On the main toolbar, click
→
Settings.
The Settings page opens. -
In the tab pane, click Edge.
The Sites tab opens and shows a table with an overview of your sites. - In the site overview, click the name of a site.
The site page appears.
-
On the main toolbar, click
- In the top right corner, click Site Actions → Delete Site.
The Delete Edge site wizard starts. - Click Delete.
The Edge sites overview appears, without the deleted Edge site. - On the server that hosts the Edge site, go to /usr/local/bin where you can find the uninstall script uninstall-edge.sh, then run one of the following commands:Note If you intend to reinstall the Edge site after performing an uninstall command, you need to recreate the Linux disk mount for the directory
/var/lib/rancher/k3sCommand Description Copy/usr/local/bin/uninstall-edge.shDelete Edge site, but keep its data.
The data consists of drivers, required files for capabilities, and data that was saved by Edge capabilitiesCopy/usr/local/bin/uninstall-edge.sh
--remove-local-dataDelete Edge site and its data. Copy/usr/local/bin/uninstall-edge.sh
--remove-local-data
--forceDelete Edge site without confirmation request, for example if you want to delete the site via a script.
You can use this in combination with removing the site data.
|
What is your Edge site installation method?
|
How to delete an Edge site installed via the Edge CLI method
Prerequisites
- You created an Edge site.
- You have a global role that has the Manage Edge sites global permission.
- Ensure that your environment uses the latest user interface.
Steps
- Open a site.
-
On the main toolbar, click
→
Settings.
The Settings page opens. -
In the tab pane, click Edge.
The Sites tab opens and shows a table with an overview of your sites. - In the site overview, click the name of a site.
The site page appears.
-
On the main toolbar, click
- In the top right corner, click Site Actions → Delete Site.
The Delete Edge site wizard starts. - Click Delete.
The Edge sites overview appears, without the deleted Edge site. - On the server from which you manage your cluster, run one of the following commands. If your Edge site has a custom namespace, you must add
-n <my-namespace>to the command.- With terminal logging:Copy
./edgecli uninstall - With terminal and file logging:Copy
./edgecli uninstall 2>&1 | tee "edge-installer-$(date +"%Y-%m-%d_%H-%M-%S").log"
The uninstall command automatically creates a backup of your site in the current working directory with file name format: edge-backup-SITE_ID-YYYYMMDD-HHMMSS.yaml. You can modify this behavior by adding the one of the following flags to the command:--path=/tmp/edge/backup: Specify a different location for the backup file.-
--no-backup:Skip the backup process.
- With terminal logging:
kubectl delete priorityclass job application platform
kubectl delete crd clusterworkflowtemplates.argoproj.io \
cronworkflows.argoproj.io workflowartifactgctasks.argoproj.io workfloweventbindings.argoproj.io workflows.argoproj.io workflowtaskresults.argoproj.io \
workflowtasksets.argoproj.io workflowtemplates.argoproj.ioHow to delete an Edge site installed via the Helm Chart method
Prerequisites
- You created an Edge site.
- You have a global role that has the Manage Edge sites global permission.
- Ensure that your environment uses the latest user interface.
Steps
- Open a site.
-
On the main toolbar, click
→
Settings.
The Settings page opens. -
In the tab pane, click Edge.
The Sites tab opens and shows a table with an overview of your sites. - In the site overview, click the name of a site.
The site page appears.
-
On the main toolbar, click
- In the top right corner, click Site Actions → Delete Site.
The Delete Edge site wizard starts. - If you plan to reinstall your Edge site, create a backup of your site.Copy
kubectl get -n <my-namespace> secrets -l edge.collibra.com/backup -o yaml > <PATH_OF_BACKUP_FILE> - Click Delete.
The Edge sites overview appears, without the deleted Edge site. - From the extracted TGZ archive, run the following command. If your Edge site had a custom namespace, add
--namespace <my-namespace>, replacing<my-namespace>with the name of your Edge site namespace.Copysh edge-cd-helm-chart/helm-uninstall.sh
How to delete an Air-Gapped Edge site
Prerequisites
- In your workstation:
- You must have admin level access to the Kubernetes cluster
- Your existing Edge site is installed using Zarf.
- Zarf is available on your workstation.
Steps
From the Zarf CLI, run the following command:
ZARF_VAR_KEEP_CPSH_EDGE_SITE=false \
zarf package remove cpsh-edge \
--namespace <edge namespace> \
--confirm
zarf package remove command doesn't accept --set, and Zarf doesn't apply the package's default values during a removal. Always pass variables for a removal as ZARF_VAR_NAME=value.| Flag | Description |
ZARF_VAR_KEEP_CPSH_EDGE_SITE=<true or false>
|
This flag determines whether or not you want to keep the Edge site in Edge management. For example, if you want to reinstall the Edge site at any point, you should set this to
|
zarf package remove cpsh-edge
|
The name of the Zarf Edge package: cpsh-edge. |
--namespace <edge namespace>
|
Add this to the command if your Air-gapped Edge site is deployed on a custom namespace. Replace the |
ZARF_VAR_KEEP_CPSH_EDGE_SITE=false \
zarf package remove cpsh-edge \
--namespace edge-zarf \
--confirm