# Kanban Card Deleting | DayPilot Pro for JavaScript Demo

> Read more about Kanban [card deleting](https://doc.daypilot.org/kanban/card-deleting/) [doc.daypilot.org].

## Links

- Canonical HTML: /demo/kanban/carddeleting.html
- Source HTML folder: /demo/kanban/
- Catalog root: /demo/
- Catalog: /demo/llms.txt

## Source

### Inline demo script 1

```javascript
const dp = new DayPilot.Kanban("dp", {
            columns: [
                {name: "Analysis", id: "1", barColor: "#f9ba25"},
                {name: "Draft", id: "2"},
                {name: "Testing", id: "3"}
            ],
            cardDeleteHandling: "Update",
            onCardDelete: function (args) {
                console.log(args);
            },
            onCardDeleted: function (args) {
                dp.message(args.card.data.name + " deleted.");
            }
        });

        const app = {
            loadData() {
                dp.cards.list = [
                    {id: 1, name: "Task 1", column: "1", text: "This is a description of task #1."},
                    {id: 2, name: "Task 2", column: "1", text: "This is a description of task #2.", barColor: "#ea3624"}
                ];
            },
            init() {
                this.loadData();
                dp.init();
            }
        };
        app.init();
```

