Server.Utils.DeleteFlow
Type: Server
Permanently deletes a flow, plus all its associated metadata and uploaded files, from the server.
NOTE: This action cannot be undone! The collection is deleted permanently. Since this is a sensitive operation, only users with the administrator role can run it.
Required permissions: MACHINE_STATE
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
FlowId |
string | The flow ID to delete | |
FlowIds |
json_array | [] |
Delete Multiple Flows |
ClientId |
string | The client id that the collection was done on | |
ReallyDoIt |
bool | If you really want to delete the collection, check this. | |
Sync |
bool | If specified we ensure delete happens immediately |
Source
Defined in artifacts/definitions/Server/Utils/DeleteFlow.yaml.
name: Server.Utils.DeleteFlow
description: |
Permanently deletes a flow, plus all its associated metadata and
uploaded files, from the server.
NOTE: This action cannot be undone! The collection is deleted
permanently. Since this is a sensitive operation, only users with
the administrator role can run it.
type: SERVER
required_permissions:
- MACHINE_STATE
parameters:
- name: FlowId
description: The flow ID to delete
default:
- name: FlowIds
description: Delete Multiple Flows
type: json_array
default: "[]"
- name: ClientId
description: The client id that the collection was done on
default:
- name: ReallyDoIt
description: If you really want to delete the collection, check this.
type: bool
- name: Sync
description: If specified we ensure delete happens immediately
type: bool
sources:
- query: |
LET FlowIds <= if(condition=FlowId, then=FlowIds + FlowId, else=FlowIds)
SELECT *
FROM foreach(row={
SELECT _value AS FlowId FROM foreach(row=FlowIds)
WHERE log(message="Deleteing Flow " + FlowId, dedup=-1)
},
query={
SELECT Type, Data.VFSPath AS VFSPath, Error
FROM delete_flow(flow_id=FlowId,
client_id=ClientId, really_do_it=ReallyDoIt, sync=Sync)
})