Delete a data record
Function: Delete a data record
This action allows you to remove a specific data record from your application's built-in database. It's useful when you need to permanently get rid of outdated, incorrect, or completed information.
Input
- Data ID: A piece of text that uniquely identifies the data record you wish to delete. This is a required input.
Output
This action performs a deletion and does not return any specific output values that can be used in subsequent steps. The primary outcome is the removal of the specified data record from your database.
Execution Flow
Real-Life Examples
Here are some practical ways you can use the "Delete a data record" action in your application:
Example 1: Removing an old customer account
Imagine a customer has requested their account to be deleted.
- Inputs:
- Data ID:
cust_12345(This would be the unique identifier for the customer's record in your database)
- Data ID:
- Result: The customer record with the ID
cust_12345is permanently removed from your application's database.
Example 2: Deleting a completed task
After a project task is finished and no longer needed for historical tracking, you might want to remove it.
- Inputs:
- Data ID:
task_projectX_007(The unique ID for the completed task)
- Data ID:
- Result: The task record identified by
task_projectX_007is deleted from your database.
Example 3: Clearing out expired promotional offers
If you have a database of promotional offers and some have passed their expiration date, you can use this action to clean them up.
- Inputs:
- Data ID:
promo_summer_sale_2023(The unique ID for the expired offer)
- Data ID:
- Result: The promotional offer record
promo_summer_sale_2023is removed from your database, ensuring only active offers are displayed.