> 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 %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.acecloud.ai/knowledge-base/ai-hub/how-to-manage-secrets.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
