Some custom fields remain in server even after deleting them and running a migration

Some custom fields remain in server even after deleting them and running a migration.

Hi @archt:

Columns in database tables are not deleted at migration process (to avoid data loss)

Try bench --site yoursite.local trim-tables --dry-run

This will show you the fields that would be deleted. Running it without --dry-run will delete the fields.

Check this:
https://frappeframework.com/docs/user/en/bench/reference/trim-tables

Backup your data & drive with care.
Hope this helps.

How to delete the data?