> For the complete documentation index, see [llms.txt](https://docs.acecloud.ai/knowledge-base/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.acecloud.ai/knowledge-base/ai-hub/how-to-manage-secrets.md).

# How to Manage Secrets

**What are Secrets?**

Secrets are a secure way to store sensitive credentials such as API tokens or container registry passwords within the platform. This ensures your credentials are never exposed in plain text across your services.

## a. How to Create a Secret?

{% stepper %}
{% step %}

### [Log in](https://customer.acecloudhosting.com/app/login) to Your Account.

{% endstep %}

{% step %}

### From the left-hand menu, select **AI HUB** and then choose **Secrets**.

<figure><img src="/files/SsdjOE46wXb8k1K3LlkN" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Create Secret

Click on **Create Secret**.

<figure><img src="/files/n4QW4oLmPCmafHZ2qHRd" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

## Enter Secret Details

Enter the secret name, choose the Secret Type, and add a description (optional).

<figure><img src="/files/GireD2Rsuf6CDB83o4X7" alt=""><figcaption></figcaption></figure>

| **Secret Type**   | **Target** | **Steps**                                                                                                                                    |
| ----------------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| HuggingFace Token | Endpoints  | Enter your HuggingFace token. For more details refer to [User access tokens · Hugging Face](https://huggingface.co/docs/hub/security-tokens) |
| {% endstep %}     |            |                                                                                                                                              |

{% step %}

## Save the Secret

Click **Create** to save.

<figure><img src="/files/gE6PUNmXf91po4zX6KSe" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

## b. How to Delete a Secret?

{% stepper %}
{% step %}

### Click the **Actions** menu next to the secret you want to delete and select **Delete Secret**.

<figure><img src="/files/0TREXjIVtKUXRuk3vTu0" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Confirm Deletion

A confirmation dialog will appear. Click **Delete Secret** to confirm.

<figure><img src="/files/rx8snqgrszweX1ZaxCb0" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
Deleting a secret is permanent and cannot be undone. Any endpoints or notebooks that use this secret will no longer be able to access it and may fail to function as expected.
{% endhint %}
