You'll need to set flyway.cleanDisabled to false in SpringBoot: https://documentation.red-gate.com/fd/community-plugins-and-integrations-spring-boot-277579373.html
This is a safety feature of Flyway to avoid allowing people to accidentally delete everything in their database.
Full disclosure - I'm a developer for Redgate on Flyway.