Skip to content

Instantly share code, notes, and snippets.

View udvarit's full-sized avatar

udvarit

View GitHub Profile

Hi!

This page explains a way you can delete all your cards at once from your Wekan recycle bin. The steps are straightforward:

  1. Export your Wekan board. In my installation, Hamburger menu on the top right → Export board.
  2. Save the script below in a file called clean.php. Place it next to the JSON you saved from 1.
  3. Open a terminal, navigate to the directory of the JSON and the script, and run the script like so: $ php clean.php $NAME_OF_THE_JSON_FILE.json
  4. The script should finish fast and it will create a $NAME_OF_THE_JSON_FILE_filtered.json, so that you can compare with the original if you wish.
  5. Re-import the filtered JSON into your Wekan instance.
<?php
if(!$argv[1]) {
die("Specify wekan export json file name pls\n");
}
$data = json_decode(file_get_contents($argv[1]), "assoc pls");
// delete archived lists
$archived_list_ids = [];