How is it possible to delete Flyway migrations
It's better to not delete, instead you should consider that define undo both 1.0.0.3
and 1.0.0.4
in new migration, such as 1.0.0.5
.
You need to remove your files and needed records from metadata table (schema_version). But it's not good practice.
As others have said, deleting migration scripts would require changes to your schema history table which would not be recommended as Flyway migrations build on the ones previously applied and could cause confusion with what scripts have been run or not. If you are using the community version of Flyway, you will need to make new migration scripts which remove what was done in the migration scripts you wish to delete. If you have access to Flyway Teams, there's an undo function which does do what it looks like you're trying to achieve.