Delete an Edge site
Delete an old or unused Edge site from Collibra Platform. 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.
Tip
|
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:
Important If you do not plan on reinstalling your Edge site on the same Kubernetes cluster as it was originally installed on, then you must run the following command after you reinstall on the new cluster to delete unmanaged resources:
Copy
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