Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[XSOAR CI/CD] New playbook - Delete Custom Content #27385

Merged
merged 18 commits into from
Jun 15, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
405 changes: 405 additions & 0 deletions Packs/ContentManagement/Playbooks/playbook-Delete_Custom_Content.yml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
This playbook deletes custom content from the system. It deletes playbooks, scripts, layouts, incident types and incident fields.

## Dependencies

This playbook uses the following sub-playbooks, integrations, and scripts.

### Sub-playbooks

This playbook does not use any sub-playbooks.

### Integrations

This playbook does not use any integrations.

### Scripts

* DeleteContext
* PrintErrorEntry
* Print
* DeleteContent
* GetIdsFromCustomContent

### Commands

* core-api-download
mmhw marked this conversation as resolved.
Show resolved Hide resolved

## Playbook Inputs

---

| **Name** | **Description** | **Default Value** | **Required** |
| --- | --- | --- | --- |
| dry_run | If true, will not actually delete any content entities. | true | Required |

## Playbook Outputs

---
There are no outputs for this playbook.

## Playbook Image

---

![DeleteCustomContent](../doc_files/DeleteCustomContent.png)
16 changes: 16 additions & 0 deletions Packs/ContentManagement/ReleaseNotes/1_2_9.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

#### Playbooks

##### New: Delete Custom Content

- New: This playbook deletes custom content from the system. It deletes Playbooks, Scripts, Layouts, Classifiers, Mappers, Incident Types and Incident Fields. (Available from Cortex XSOAR 6.8.0).
mmhw marked this conversation as resolved.
Show resolved Hide resolved

#### Scripts

##### New: GetIdsFromCustomContent

- New: Extract custom content ids from custom content bundle file and exclude ids as specified. (Available from Cortex XSOAR 6.0.0).
mmhw marked this conversation as resolved.
Show resolved Hide resolved
##### DeleteContent

- Improved the *readable output* to include the deleted content name.
- Updated the Docker image to: *demisto/python3:3.10.12.62631*.
Loading