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.

Procedure
  1. Identify the manifest that needs to be placed in the delete subdirectories.

  2. Create the delete subdirectory 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.

  3. Move the manifest file into one of the delete subdirectories 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/delete or /usr/lib/microshift/manifests/delete.

  4. Restart MicroShift by running the following command:

    $ sudo systemctl restart microshift
  5. MicroShift detects and removes the resource after the manifest file is placed in the delete subdirectories.