On exec code
php artisan api:generate --routePrefix="api/v1/*"
it delete all database.
I think without --noResponseCalls it tries to build a request to each endpoint to build the example responses. If any endpoint you have would clear out a table it would trigger that. But that is just a guess.
I do not have any method that delete the entire database to be delete but it deletes only 1 item by id.
Would one suggestion be to run it in a test database?
Most helpful comment
Would one suggestion be to run it in a test database?