Delete Dataset
Properties
- Input
- Document Id
- Type:
int
- Description: The document ID of the dataset to be deleted. This is a required argument.
- Type:
- Parameter Definition Id
- Type:
int
- Description: The parameter definition ID of the dataset to be deleted. This is a required argument.
- Type:
- Delete Definition
- Type:
bool?
- Description: Specifies whether to also delete the dataset's definition. This is an optional argument.
- Type:
- Document Id
Usage
- Setup Activity:
- Add the "Delete Dataset" activity to your UiPath workflow.
- Configure the required input arguments:
- Document Id: Specify the document ID of the dataset to be deleted.
- Parameter Definition Id: Specify the parameter definition ID of the dataset to be deleted.
- Optionally, specify:
- Delete Definition: Set to
true
if you want to delete the dataset's definition along with its content.
- Delete Definition: Set to
- Execution:
- The activity executes asynchronously, deleting the specified dataset's content and optionally its definition.
- It uses the configured API context to perform the deletion via the dataset client.
- Output:
- The activity returns an
int
representing the result of the deletion operation, which might indicate success or provide additional information based on the implementation.
- The activity returns an
Considerations
- Data Integrity: Ensure that the document ID and parameter definition ID are valid and correctly specified to avoid errors during the deletion process.
- Permanent Deletion: Be aware that deleting a dataset's content and definition is usually irreversible. Confirm the action before proceeding.
- Permissions: Verify that the necessary permissions are in place for the user or application performing the deletion to prevent unauthorized actions.
- Error Handling: Implement error handling to manage potential issues such as network connectivity problems or invalid input data.