This script has the ability to make major changes to your Zendesk instance via deleting ticket fields.
This script loops through all of your ticket fields finding all that match the created_at date & title deleting them
Follow these steps to get a local copy up and running.
- npm
npm install npm@latest -g
- Clone the repo
git clone https://github.com/eric-at-zd/ticket-field-deleter
- Install dependancies
npm install
-
Copy the .env.example file into an .env
-
Replace placeholder values in the .env file with one's relevant to your account
-
Put the date you'd like to match in the matchDate field on line 52
let matchDate = "2022-01-17";
- Put the titles you'd like to match in the matchTitleArr array on line 54
let matchTitleArr = ["example field 1", "example field 2"];
- Run the script
npm run start