--- title: "DetachAllTables" slug: "detachalltables" updated: 2024-11-05T17:46:51Z published: 2024-11-05T17:46:51Z canonical: "docs.datajet.app/detachalltables" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.datajet.app/llms.txt > Use this file to discover all available pages before exploring further. # DetachAllTables Detaches all [injected table](/v1/docs/deep-dive-sharing-data-by-injection)s from a project. | Key | Value(s) | Description | | --- | --- | --- | | method | "DetachAllTables" | Detaches all injected tables from a project. | | targetProject | "TargetProjectName" | Consumer project containing the tables to be detached. | | project | "CurrentProjectName" | Current Project | All injected tables in the target project will be detached. If any fields have been engineered whilst the tables were injected into the target project then the tables in the targetproject will still be present, but will contain only the engineered fields. To permanently remove an injected table and any engineered fields, first call DetachAllTables, and then use [DeleteTable](/v1/docs/scriptingmethod-1) for each table which needs to be removed. NOTE: Consider using a script and process that allows the target project to be dropped and recreated. If the consumer project is not being dropped, reset project dependencies each time the project is rebuilt using [DeleteDependencies](/v1/docs/deletedependencies). ```json { "method": "DetachAllTables", "targetProject": "Production" "project": "LoadProject" } ```