Skip to content

uc-apx delete page

Delete the .apx file backing the named page. The ref-safety scan covers both @-style references (other constructs pointing at @alias targets on this page) AND bare-int page-number references (branches, breadcrumb entries, button redirects, the app’s homePage attribute, …). When any referrer is found the command blocks; —force overrides.

The int-page allowlist (page, targetPage, dialogTargetPage, homePage, errorPage, sessionExpiredPage, pageNumber) is deliberately finite — always re-run validate --official after a page delete to catch anything outside the allowlist that broke.

uc-apx delete page <id-or-alias-or-name> [flags]
FlagTypeDefaultDescription
--dry-runShow what would be deleted (file path + referrers) without removing anything
--forceRemove the file even when other constructs reference the page (lists referrers as a warning)
FlagTypeDefaultDescription
--app-dirstring.Path to the APEX application directory
--json-prettyOutput in pretty-printed JSON (human-readable) instead of minified JSON
--toonOutput in TOON format (human-readable, token-efficient) instead of JSON