bulkDeleteVals
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
index.ts
https://charmaine--55ccdb963f3011f0895d76b3cceeab13.web.val.run
A web interface for bulk deleting your Val Town vals with visibility information and verification links.
- 📋 List all your vals with visibility status (Public, Unlisted, Private)
- 🔗 Direct links to each val for verification before deletion
- ✅ Bulk selection with select all/none functionality
- 🗑️ Bulk delete multiple vals at once
- 🎯 Individual delete option for single vals
- 🔒 Safe deletion with confirmation dialogs
-
Get your Val Town API token:
- Go to https://www.val.town/settings/api
- Create a new token or copy an existing one
-
Set environment variable:
- Add an environment variable named
valtown
with your API token as the value
- Add an environment variable named
-
Visit the val URL to see all your vals in a table format
-
Each val shows:
- Name and ID
- Visibility status (🌍 Public, 🔗 Unlisted, 🔒 Private)
- Last updated date
- View link to verify the val
- Individual delete button
-
Bulk operations:
- Use "Select All" or "Select None" buttons
- Check individual vals you want to delete
- Click "Delete Selected" to bulk delete
-
Safety features:
- Confirmation dialogs before deletion
- Shows val names in confirmation
- Real-time count of selected vals
GET /
- Main interfacePOST /delete-bulk
- Bulk delete selected valsPOST /delete-single
- Delete individual val
- Requires your personal Val Town API token
- Only you can delete your own vals
- All deletions require confirmation
- Shows clear error messages for API issues
- Handles missing tokens gracefully
- Reports partial failures in bulk operations