My AI Removed One Form Field. It Never Mentioned the Price
I asked my AI to remove one question from a booking form. It warned me about the cleaner matching, but never mentioned the $15 fee calculated in the database. How to remove a field safely, in order

A customer books a cleaning. In the notes they write, "We have two cats." On the staff page, the app says no pets and no pet fee, and it has just assigned the cleaner who's allergic to cats.
Ten minutes earlier, I'd asked my AI to remove one question from the booking form: "Do you have pets?" It did exactly that. It even warned me about part of what went wrong. Just not the part that costs money.
Is this you?
If you're about to remove a question from a form in an AI-built app, check this first:
- Does anything show the answer (a staff page, an email, a badge)?
- Does anything decide based on it (who gets assigned, what's allowed)?
- Does anything charge based on it, and does that logic live in your code or in the database?
- What should happen to the answers you already have?
If you can't answer the third question for sure, read on.
What the AI did, and what it said
The change was two files. The question was gone from the form, and so was the line that saved the answer. Clean.
And it didn't stay quiet. Claude Code told me that new bookings would save the pets answer as blank, and that the cleaner matching treats blank as "no pets". So a cleaner with a cat allergy could be sent to a home with pets, and the "Needs pet-friendly cleaner" badge would stop showing.
That was a good answer. Everything it said was true. But the booking should have cost $165: $150 for two bedrooms plus a $15 pet fee. The fee was gone, and the AI never mentioned it.
Where the fee lives
I searched the code. The staff page displays the pet fee, but nothing in the code calculates it. It's calculated in the database.
A query in the Supabase SQL editor (it's further down) listed everything in the database that uses the pets column: a view that the staff page reads, and a trigger. A trigger is a small function that runs on every booking. This one said: if the customer has pets, add $15, otherwise add nothing. And "otherwise" includes "we never asked".
I put that pricing logic in the database for this demo, but it's a setup I see a lot. Your AI tells you to paste some SQL into the dashboard, you do, and it never ends up in your code. So when the AI searched my project, there was nothing to find. Its map of "where is this used" stops at what it can read.
Same prompt, with database access
So I gave it read-only access to the database and asked the exact same thing in a fresh session.
This time it went further. Without asking, it changed the cleaner matching so that unknown now means "might have pets", and the staff page showed "Unknown" instead of "No". The cats booking now went to Ben, the cleaner without the allergy. Better.
But think about what that decision means. Ana, the cleaner with the allergy, now gets no new jobs until someone on staff fills in the pets answer by hand. That's a reasonable call. It's also a business decision about your staff's work, and the AI made it for you.
And the price was still $150. It had access to the database. It didn't look at what uses the column. Having access isn't the same as checking.
Same prompt, same tool, different behaviour: in another run with access, it asked me first instead of deciding. You can't count on the AI to bring the decision back to you.
Null is not "no"
Here's the core of the problem. Before, every booking said yes or no. Now new bookings say nothing: null. And every place that reads the answer was written for yes or no. The staff page, the matching and the price each treat "we didn't ask" as "no".
"Remove the question" sounds like one change. It's four:
- Stop asking.
- Stop saving.
- Stop using it.
- Decide what happens to the answers you already have.
The AI did the first two, because that's what I asked for.
How to remove a field, in order
1. Decide. Are you dropping the information, or collecting it another way? What happens to the answers you have? For this business: stop asking on the form, have staff confirm pets when they confirm the booking, keep the old answers, and charge no pet fee until pets are confirmed.
2. Map everything that uses it. Ask your AI for the full list, and ask what it couldn't check:
Before changing anything: list every file, query, type, component, test, email template and API call that reads, writes or displays `has_pets` (also search for `hasPets`, `pets` and `pet_`). For each one, tell me what happens for new records where the value is null. Then tell me what you could NOT check, such as database functions, triggers or third-party services. Don't edit anything yet.
Then search the code yourself:
git grep -n -i -E "has_?pets|haspets"
Then run this read-only query in the Supabase SQL editor. Change bookings and has_pets to your table and column. This is the query that found the trigger.
-- views that use the column (tracked by Postgres)
select 'view' as kind, view_schema::text as schema, view_name::text as name
from information_schema.view_column_usage
where table_schema = 'public' and table_name = 'bookings' and column_name = 'has_pets'
union all
-- functions whose body mentions it (bodies are NOT dependency-tracked, so search the text)
select 'function', n.nspname::text, p.proname::text
from pg_proc p
join pg_namespace n on n.oid = p.pronamespace
where p.prosrc ilike '%has_pets%'
and n.nspname not in ('pg_catalog', 'information_schema')
union all
-- RLS policies whose expressions mention it
select 'policy', schemaname::text, (tablename || '.' || policyname)::text
from pg_policies
where qual ilike '%has_pets%' or with_check ilike '%has_pets%'
union all
-- every user trigger on the table (check what each function does)
select 'trigger on bookings', 'public', (t.tgname || ' → ' || t.tgfoid::regproc::text)
from pg_trigger t
where t.tgrelid = 'public.bookings'::regclass and not t.tgisinternal
order by 1, 3;
3. Make everything handle "unknown" first, before you remove the question. In my app:
- Matching: only a home confirmed as having no pets can go to a cleaner with an allergy.
- Staff page: shows "Unknown", a "Confirm pets with customer" badge, and a dropdown so staff can set yes, no or unknown.
- The trigger can stay as it is. Unknown means no automatic fee, which was our decision, and it runs again whenever staff update the booking.
You can ask for this part with a prompt like this one. Fill in your question and column:
We're removing the "[question]" question from the form. Existing records keep their value. New records store null, which means "unknown", not "no". Before removing the input, update every place that reads `[column]` so that null shows "Unknown", is flagged for a person to confirm, and never gets the "no" behaviour automatically. Then remove the input. Don't drop the column. Show me each change.
4. Then remove the question. That's the part the AI had already done.
5. Drop the column later, or never. I'm keeping it, because staff still record pets. If you do drop it, run the query above first, and never add cascade just to make an error go away. Cascade quietly deletes whatever depends on the column, such as the staff page's view.
Verify it worked
Don't trust the summary. Check it:
- Make a booking the same way as before. Pets shows Unknown, not "No".
- It's flagged for staff to confirm.
- Auto-assign skips the cleaner with the allergy.
- Staff set pets to Yes, and the $15 fee appears ($165).
- Old bookings keep their answers.
- Everything the query found has a decision behind it.
Recap
Before you remove any field, paste the mapping prompt, search the code yourself, and run the query in your database. Your AI can find a lot of the where. Make sure it can see everywhere. And decide what "remove" means before it does.
The why half of this, the questions only the business owner can answer, is in Your AI Knows Where. Only You Know Why.
The app in this post is my own demo, built with fake data. Behaviour varied between runs; this is what happened when I tried it with Claude Code 2.1.326 in November 2026.