Remove manifests for RPM systems
To remove a resource on RPM-based MicroShift systems, move the manifest into a delete subdirectory and restart MicroShift so the resource is deleted.
-
Identify the manifest that needs to be placed in the
deletesubdirectories. -
Create the
deletesubdirectory in which the manifest will be placed by running the following command:$ sudo mkdir -p <path_of_delete_directory>Replace
<path_of_delete_directory>with one of the following valid directory paths:/etc/microshift/manifests.d/delete,/etc/microshift/manifests/delete/,/usr/lib/microshift/manifests.d/delete, or/usr/lib/microshift/manifests/delete. -
Move the manifest file into one of the
deletesubdirectories under the configured manifests directory by running the following command:$ [sudo] mv <path_of_manifests> <path_of_delete_directory>where:
<path_of_manifests>-
Specifies the path of the manifest to be deleted, for example
/etc/microshift/manifests.d/010-SOME-MANIFEST. <path_of_delete_directory>-
Specifies one of the following valid directory paths:
/etc/microshift/manifests.d/delete,/etc/microshift/manifests/delete,/usr/lib/microshift/manifests.d/deleteor/usr/lib/microshift/manifests/delete.
-
Restart MicroShift by running the following command:
$ sudo systemctl restart microshift -
MicroShift detects and removes the resource after the manifest file is placed in the
deletesubdirectories.