# Rule: Automated Product Removal

### Overview

PeakCommerce offers a solution with its automated product removal rule feature, enabling seamless management of subscriptions.

### Create the Rule

Here's a step-by-step guide on how to create an automated product removal rule using PeakCommerce:

1. **Accessing Rule Creation**: Log in to your PeakCommerce account and navigate to the journey you wish to add the rule to. Look for the section on rules or automated actions.
2. **Initiate Rule Creation**: Start the process of creating a new rule. You will find a button or option labeled "Create New Rule".
3. **Define Conditions**:
   * **IF Statement**: Begin by defining the conditions under which the rule will trigger. For this automated product removal rule, ensure that the "Keep IF (Always True)" option is checked. This means that the rule will always evaluate as true, triggering the action regardless of other conditions.
4. **Specify Action**:
   * **THEN Statement**: Select the action to be performed when the conditions are met. In this case, choose "Remove Product Rate Plan IDs from Sub" from the available options.
5. **Input Rate Plan IDs**:
   * In the text box provided, paste the rate plan IDs obtained from Zuora. These IDs should correspond to the rate plans that you want to be automatically removed from subscriptions if they are present. Each rate plan ID should be listed on a separate line.
6. **Save and Activate**: Once you've inputted all the necessary information, review the rule to ensure accuracy. Then, save the rule and activate it to set it into motion.

### **Example**

```
IF
   Always True (Checked)

THEN
   Remove Product Rate Plan IDs from Sub
      IDs (RP-001, RP-002, RP-003)
```

In this example, the rule will remove the rate plans with the IDs RP-001, RP-002, and RP-003 from subscriptions whenever they are detected.

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

By implementing automated product removal rules in PeakCommerce, businesses can streamline their subscription management processes, ensuring accuracy and responsiveness to customer needs. This feature not only saves time and effort but also enhances customer satisfaction by maintaining up-to-date subscription offerings. With PeakCommerce, stay ahead in the dynamic world of e-commerce effortlessly.&#x20;


---

# Agent Instructions: 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.peakcommerce.com/developers/logic-and-rules/rule-automated-product-removal.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.
