> For the complete documentation index, see [llms.txt](https://docs.rulecube.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rulecube.com/v2.5/how-to-guides/ruleset-development/delete-a-ruleset-or-components.md).

# Delete a Ruleset or Components

## Introduction

This guide explains how to delete a ruleset or specific components from a ruleset.

Over time, the requirements for your ruleset change, and you modify them accordingly. This generally means adding components or updating existing components, but sometimes you no longer need an existing component and want to remove it. Or you may even want to remove the entire ruleset.

## Before you begin

* Before deleting anything, it is wise to export a ruleset as a backup so you can always revert your changes.

## Procedure

We'll provide procedures for deleting a component, a ruleset version, and an entire ruleset.

### Delete a component from a ruleset

This applies to inputs, entities, constants, functions, rules, and testcases.

1. Open your ruleset.
2. Select the component you want to delete—for example, a rule.
3. Click **Delete**.\
   ↳ The rule or other component you selected is deleted without warning. But you can still go back because it's not final yet.
4. If you want to revert the deletion, click **Cancel**.\
   ↳ Rulecube opens a pop-up asking if you want your changes (the deletion) to get lost.&#x20;
   1. Click **OK** to revert the deletion.\
      ↳ Rulecube reloads the ruleset, and your component is still there.
5. If you want to proceed with the deletion, click **Save**.\
   ↳ Your component is permanently deleted from your ruleset.

### Delete a ruleset version

Rulecube has two ways to delete a ruleset version:

#### From the Services page:

1. Select the **Services** page.
2. Click the ruleset whose version you want to delete.\
   ↳ Rulecube expands the available versions of the ruleset:<br>

   <div align="left"><figure><img src="/files/niRDscDezGICf5sjHHIz" alt=""><figcaption></figcaption></figure></div>
3. Click <img src="/files/obSTEhwdZsQcYkDE2FC7" alt="" data-size="line">behind the version that you want to delete. \
   ↳ The **Delete ruleset** pop-up opens.
4. Click **OK**.\
   ↳ The ruleset version is deleted.

#### From the ruleset version itself:

1. Open the ruleset version you want to delete.
2. Click **Delete ruleset version**.\
   ↳ The **Delete ruleset** pop-up opens.
3. Click **OK**.\
   ↳ The ruleset version is deleted.

### Delete an entire ruleset

1. If you have more than one version a "Delete all" button is available. When you click this, all versions of a ruleset will be deleted.

If you manually delete the last version of a ruleset, the ruleset is also deleted and will no longer be visible on the Services page.


---

# 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:

```
GET https://docs.rulecube.com/v2.5/how-to-guides/ruleset-development/delete-a-ruleset-or-components.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
