Permanently removes all storage, git, and governance artefacts for a project. This is irreversible – data is deleted from storage and the project is unregistered from the shared governance repo.
Details
Teardown order (each step is warn-and-continue on failure so the remaining steps still run):
Delete all objects under the data storage namespace.
Delete the data GitHub repo via the GitHub REST API. Requires
GITHUB_PATwith thedelete_reposcope; skipped with a warning if the PAT is unavailable or the local clone has no GitHub remote.Remove the local data clone directory (
conn$path).Unregister the project from the governance repo (git commit + push). Skipped when the project has no governance attached (
is.null(conn$gov_root)); also skipped with a warning when gov is attached butconn$gov_local_pathisNULL.Delete the project folder from governance storage (
projects/{project_name}/). Skipped when the project has no governance attached.