Environment:
- SQLcl 26.1.2
- APEX 26.1
- SQLcl Project
- APEXlang export structure
Description:
When an APEX application alias changes, SQLcl Project export creates a new alias-based folder under the application export directory, but it does not remove the old alias folder.
To Reproduce:
- Run project export -o APEX.<app_id>
- Change application alias in apex builder
- Run project export -o APEX.<app_id> again
Example structure:
src/database/<schema>/apex_apps/fNNN/<old-app-alias>/
src/database/<schema>/apex_apps/fNNN/<new-app-alias>/
Expected result:
SQLcl Project export should remove or replace the stale alias-based folder, or provide an option to clean the target application export directory before writing the new export.
Actual result:
The old folder remains in the repository.
Impact:
The stale folder can confuse code reviews, AI agents, and project maintainers because it looks like more than one current APEXlang application source tree exists for the same application.