---
title: "Write cleanup scripts from a ticket description · Lenexa Learn"
description: "A developer pasted a ticket with examples into Cursor, running Claude, and got working bash scripts that cleaned up stale cloud resources. It saved hours."
url: https://www.lenexa.ai/learn/use-cases/write-cleanup-scripts-from-a-ticket-description/
site: "Lenexa Learn"
---

Software & DevOps

# Write cleanup scripts from a ticket description

A developer pasted a ticket with examples into Cursor, running Claude, and got working bash scripts that cleaned up stale cloud resources. It saved hours.

**Caution.** Always dry-run deletion scripts.

## Steps

1. Paste in the ticket.
2. Generate the scripts.
3. Do a dry run first.

## Prompt you can copy

```
Here's the ticket: [paste]. Write scripts that list and safely delete stale [resources], with a dry-run mode.
```

## Tools

- Cursor
- Claude

For Developers. Added October 12, 2026.

## Source

[hn](https://news.ycombinator.com/item?id=45360662) · September 2025

## Related use cases

Software & DevOps

### [Build small personal apps for hobbies and friends](https://www.lenexa.ai/learn/use-cases/build-small-personal-apps-for-hobbies-and-friends/)

With AI, one person built lots of small apps: finding books for his wife, tracking weight, picking board games, planning wood projects, and a bot that chooses the weekly lunch spot.

Developers, Individuals Claude

Software & DevOps

### [Find a non-obvious bug and convert framework code](https://www.lenexa.ai/learn/use-cases/find-a-non-obvious-bug-and-convert-framework-code/)

One developer pasted an error and some code into Claude, and it spotted the hidden mistake at once. Earlier, it had saved them hours converting prototype code from React to Vue.

Developers Claude

Software & DevOps

### [Improve your email domain security settings](https://www.lenexa.ai/learn/use-cases/improve-your-email-domain-security-settings/)

One person asked Claude to review their domain setup. It suggested adding DMARC and then set it up.

Developers, Small businesses Claude

The daily email

## Get 5 AI use cases every morning

A short morning email with five things AI can help with, picked for the groups you choose. It's free, we don't sell anything on this list, and every email has an unsubscribe link.
