cleanup_artifacts
Remove all migration artifacts from ServiceNow, including field maps, transform scripts, staging tables, and data sources, to start a fresh migration setup.
Instructions
Remove all migration artifacts that were created in ServiceNow during the setup phase. This deletes (in safe order): 1. Field maps (sys_transform_entry) 2. Transform scripts (sys_transform_script) 3. Transform map (sys_transform_map) 4. Staging table columns (sys_dictionary) 5. Staging table (sys_db_object) 6. Data source (sys_data_source) 7. REST message (sys_rest_message)
Use this when you want a completely clean slate — for example after a failed migration setup, or when the customer wants to restart with different field mappings.
IMPORTANT: Always discover first (confirmed=false) to show the user exactly what will be deleted. Only delete after they explicitly confirm with "Yes, delete them" or similar.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| platform | Yes | Source platform used during setup | |
| object_name | Yes | Source object / project key used during setup (e.g. KAN, Account) | |
| staging_table | Yes | Staging table name (e.g. u_stg_jira_kan) | |
| target_table | Yes | ServiceNow target table (e.g. incident, problem, change_request) | |
| confirmed | Yes | Must be true — user has explicitly confirmed the deletion |