// Module included in the following assemblies:
//
// * microshift_troubleshooting/microshift-cleanup-data.adoc

:_mod-docs-content-type: PROCEDURE
[id="microshift-data-cleaning-certs_{context}"]
= Cleaning custom certificates data

[role="_abstract"]
To recreate {microshift-short} custom certificates upon service restart, reset them by using the `microshift-cleanup-data` script.

When you run the script with the `--cert` argument, you perform the following clean up actions:

* Stop all {microshift-short} services
* Delete all {microshift-short} pods
* Delete all {microshift-short} certificates

.Prerequisites
* You are logged into {microshift-short}.
* You have filed a support case.

.Procedure

. Clean up the {microshift-short} certificates by running the `microshift-cleanup-data` script with the `--cert` argument, by entering the following command:
+
[source,terminal]
----
$ sudo microshift-cleanup-data --cert
----
+
.Example output
[source,terminal]
----
Stopping MicroShift services
Removing MicroShift pods
Removing MicroShift certificates
MicroShift service was stopped
Cleanup succeeded
----
+
[IMPORTANT]
====
Running the script stops the {microshift-short} service.
====

. Restart the {microshift-short} service by running the following command:
+
[source,terminal]
----
$ sudo systemctl start microshift
----