CURLcurl -X POST \ -H "Authorization: [[apiKey]]" \ \ -H "Content-Type: application/json,application/xml" \ "https://hostname:443/automation/delete" \ -d '{ "filter" : { "searchAfterMap" : { "key" : [ "searchAfterMap", "searchAfterMap" ] }, "searchAfterMapOrder" : { "key" : 6 }, "size" : 1, "searchAfterElastic" : [ "searchAfterElastic", "searchAfterElastic" ], "ignoreWorkers" : true, "query" : "query", "searchBefore" : [ "searchBefore", "searchBefore" ], "searchBeforeElastic" : [ "searchBeforeElastic", "searchBeforeElastic" ], "searchAfter" : [ "searchAfter", "searchAfter" ], "page" : 0, "sort" : [ { "asc" : true, "field" : "field", "fieldType" : "fieldType" }, { "asc" : true, "field" : "field", "fieldType" : "fieldType" } ], "Cache" : { "key" : [ "Cache", "Cache" ] } }, "savePassword" : true, "script" : { "outputs" : [ { "contentPath" : "contentPath", "contextPath" : "contextPath", "description" : "{}", "type" : "type" }, { "contentPath" : "contentPath", "contextPath" : "contextPath", "description" : "{}", "type" : "type" } ], "dbotCreatedBy" : "dbotCreatedBy", "scriptTarget" : 9, "sizeInBytes" : 2, "deprecated" : true, "syncHash" : "syncHash", "polling" : true, "remote" : true, "type" : "type", "searchableName" : "searchableName", "toServerVersion" : { "Digits" : [ 5, 5 ], "Label" : "Label" }, "contextKeys" : [ "contextKeys", "contextKeys" ], "modified" : "2000-01-23T04:56:07.000+00:00", "xsoarReadOnlyRoles" : [ "xsoarReadOnlyRoles", "xsoarReadOnlyRoles" ], "visualScript" : "visualScript", "id" : "id", "locked" : true, "rawTags" : [ "rawTags", "rawTags" ], "allReadWrite" : true, "numericId" : 2, "sequenceNumber" : 3, "previousAllRead" : true, "dependsOn" : { "key" : [ "dependsOn", "dependsOn" ] }, "pswd" : "pswd", "created" : "2000-01-23T04:56:07.000+00:00", "indexName" : "indexName", "xsoarHasReadOnlyRole" : true, "sensitive" : true, "shouldCommit" : true, "version" : 7, "script" : "script", "tags" : [ "tags", "tags" ], "detached" : true, "important" : [ { "related" : "related", "contextPath" : "contextPath", "description" : "description" }, { "related" : "related", "contextPath" : "contextPath", "description" : "description" } ], "previousAllReadWrite" : true, "system" : true, "name" : "name", "hasRole" : true, "propagationLabels" : [ "propagationLabels", "propagationLabels" ], "private" : true, "dockerImage" : "dockerImage", "commitMessage" : "commitMessage", "hidden" : true, "primaryTerm" : 7, "roles" : [ "roles", "roles" ], "runOnce" : true, "enabled" : true, "timeout" : 4, "engineGroup" : "engineGroup", "packID" : "packID", "highlight" : { "key" : [ "highlight", "highlight" ] }, "engine" : "engine", "subtype" : "subtype", "MainEngineInfo" : { "engine" : "engine", "engineGroup" : "engineGroup" }, "vcShouldIgnore" : true, "prevName" : "prevName", "definitionId" : "definitionId", "fromServerVersion" : { "Digits" : [ 5, 5 ], "Label" : "Label" }, "runAs" : "runAs", "previousRoles" : [ "previousRoles", "previousRoles" ], "itemVersion" : { "Digits" : [ 5, 5 ], "Label" : "Label" }, "packPropagationLabels" : [ "packPropagationLabels", "packPropagationLabels" ], "xsoarPreviousReadOnlyRoles" : [ "xsoarPreviousReadOnlyRoles", "xsoarPreviousReadOnlyRoles" ], "cacheVersn" : 5, "sortValues" : [ "sortValues", "sortValues" ], "vcShouldKeepItemLegacyProdMachine" : true, "allRead" : true, "arguments" : [ { "auto" : "auto", "default" : true, "hidden" : true, "defaultValue" : "defaultValue", "deprecated" : true, "name" : "name", "description" : "description", "isArray" : true, "secret" : true, "type" : "type", "predefined" : [ "predefined", "predefined" ], "required" : true }, { "auto" : "auto", "default" : true, "hidden" : true, "defaultValue" : "defaultValue", "deprecated" : true, "name" : "name", "description" : "description", "isArray" : true, "secret" : true, "type" : "type", "predefined" : [ "predefined", "predefined" ], "required" : true } ], "comment" : "comment", "packName" : "packName", "user" : "user", "sourceScripID" : "sourceScripID" } }' \ -d '
' true
Delete a given automation from the system.