---
schema_version: "1"
id: f80985c0a3feceb5e75e5d8575181388b2faa1c0df0e1a21255ff9e8b152f631
title: Add a Remove Card Action to a Flexcard (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_add_a_remove_card_action_to_a_flexcard.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_add_a_remove_card_action_to_a_flexcard.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 4309ec98b262b0c7e874765ba410673fa42a0ffa63de22e27c2f43fc62c80240
description: For the managed package runtime, remove a specific record on a Flexcard or remove the entire Flexcard with a remove card action. The data record is only removed from the Flexcard and not from the database it's pulled from. The Flexcard is only removed from the page it's viewed from, and not permanently deleted.
products:
  - Omnistudio
release: "264"
---
# Add a Remove Card Action to a Flexcard (Managed Package)

For the managed package runtime, remove a specific record on a Flexcard or remove the entire Flexcard with a remove card action. The data record is only removed from the Flexcard and not from the database it's pulled from. The Flexcard is only removed from the page it's viewed from, and not permanently deleted.

![Managed Package app icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/resources-global/_corporate/images/managedpackageicon.png) This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see [Omnistudio Help](https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_standard.htm&language=en_US).

To remove a record from the database, configure the remove card action with an Update Omniscript action. See [Update an Omniscript from a Flexcard (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_update_an_omniscript_from_a_flexcard.htm&release=264.0.0&type=5 "For the managed package runtime, create an action that updates an Omniscript's data JSON from the Flexcard embedded in the Omniscript. You can embed a Flexcard inside an Omniscript as a Custom LWC.").

1. From the Flexcard Designer, drag an **Action** element into a state.
2. Select **Card** from the **Action Type** dropdown.
3. From the **Type** dropdown, select **Remove**.
4. To remove a specific record, create an Event Listener, and enter a **Record Index**. See [Add an Event Listener to a Flexcard (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_add_an_event_listener_to_a_flexcard.htm&release=264.0.0&type=5 "For the managed package runtime, add an event listener that listens for an event fired from a component and performs an action in response. With a Pubsub Event, listen for an event from another component, such as another Flexcard on the same Lightning page. With a Custom event, listen for an event fired from a child Flexcard or from an element on the card.").
5. (Optional) To configure other options common among all action properties, see [Flexcards Action Properties (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_flexcards_action_properties.htm&release=264.0.0&type=5 "For the managed package runtime, Action element properties are configurable from the Properties panel in the Flexcard Designer when you select an Action element. With the Action element, create an action to launch an Omniscript, navigate to a web page or application, display a flyout, fire an event, and more.").

What’s next: To style your action element, click **Style** to open the Style panel, and see [Flexcards Action Style Properties (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_flexcards_action_style_properties.htm&release=264.0.0&type=5 "For the managed package runtime, configure style properties specific to the Action element from the Style panel in the Flexcard Designer.").