## Edit a component [#edit-component]

To edit a component, go to the **Components** tab. Select the three dots next to the component and select **Edit**.

NOTE  
You cannot edit a **Published** component. Either [duplicate](https://www.infobip.com/docs/manage-components#duplicate-component) or [unpublish](https://www.infobip.com/docs/manage-components#unpublish-component) the component.

___

## Delete a component [#delete-component]

To delete a component, go to the **Components** tab. Select the three dots next to the component and select **Delete**.

NOTE  
- You cannot delete a **Published** component. Either [duplicate](https://www.infobip.com/docs/manage-components#duplicate-component) or [unpublish](https://www.infobip.com/docs/manage-components#unpublish-component) the component. - After deleting a component, remove the references to the component in all solutions in which it is used.

___

## Unpublish a component [#unpublish-component]

Unpublishing a component makes it unavailable to select in a solution. The status changes from **Published** to **Draft**.

Select **Unpublish** in the component.

NOTE  
You cannot unpublish a component that is used in an active solution. Either [duplicate](https://www.infobip.com/docs/manage-components#duplicate-component) the component or remove it from all the solutions in which it is used. Example: If the component is used in an active chatbot, deactivate the chatbot, remove or replace the component in the chatbot, and then activate the chatbot.

___

## Duplicate a component [#duplicate-component]

If you want to create a new component that is similar to an existing component, use the **Duplicate** option. This reduces the time taken to create the component because you do not need to create it from scratch. You can then modify the duplicate component to meet your requirements.

To duplicate a component, follow these steps:

1. Go to the **Components** tab.
2. Do one of the following:
   - Select the three dots next to the component and select **Duplicate**.
   - Open the component and select **Duplicate**.

   The component is now listed in the **Components** tab in **Draft** status.

3. In the duplicate component, do the following:
   - Rename the component.
   - If you want to replace the existing component in all solutions in which it is used, do not update the component ID.
   - If you want to retain both the existing component and the new component, update the component ID.
   - Make other changes to meet your requirements.

4. Select **Publish**.

    If there is an existing Published component with the same Component ID, that component is unpublished. The new component replaces the existing component in all solutions in which it is used.

    Select one of the following options:

    - **Terminate sessions gracefully**: The existing component continues processing until it finishes. The next time the component is called, the new component is used.

        Select a **Grace period**. The minimum period is 10 minutes and the maximum is 24 hours. The default period is 24 hours.
    - **Terminate sessions immediately**: The existing component stops processing immediately. The next time the component is called, the new component is used.

5. Select **Publish**.