Ask AI
Skip to main content

Delete list of data records

Function: Delete list of data records

This action allows you to efficiently remove multiple data records from your application at once. Instead of deleting items one by one, you can provide a collection of records, and the platform will remove them all in a single operation. This is useful for bulk cleanup, archiving, or managing large datasets.

Input

  • List of data to delete (Type: ARRAY): This is a required list containing the specific data records you wish to remove. Each item in this list should represent a data record that exists in your application.

Output

This action does not return any specific data. Its primary effect is the permanent removal of the specified data records from your application.

Execution Flow

Real-Life Examples

Example 1: Cleaning Up Old Customer Inquiries

  • Scenario: Your customer support team wants to remove all inquiry records that are older than one year and have been marked as "Closed" and "Archived."
  • Inputs:
    • List of data to delete: A list of customer inquiry records filtered by "Status = Closed," "Archived = True," and "Date Created < [Current Date - 1 Year]".
  • Result: All specified old and archived customer inquiry records are permanently removed from your application, decluttering your database.

Example 2: Removing Outdated Product Drafts

  • Scenario: A product manager needs to clear out all product drafts that were created more than six months ago and never published.
  • Inputs:
    • List of data to delete: A list of product records where "Status = Draft" and "Date Created < [Current Date - 6 Months]".
  • Result: All outdated product draft records are deleted, ensuring that only relevant product information remains in the system.

Example 3: Bulk Deleting Completed Project Tasks

  • Scenario: At the end of a large project, the project manager wants to remove all tasks associated with that project that have a "Status = Completed."
  • Inputs:
    • List of data to delete: A list of task records filtered by "Project ID = [Specific Project ID]" and "Status = Completed".
  • Result: All completed tasks for the specified project are removed, providing a clean slate for future projects or archiving the project's task history.