# Delete Git repository This function deletes a cPanel account's Git™ repository. For more information about support for version control in cPanel & WHM, read our Git Version Control and Guide to Git documentation. * When you call this function, the system the entire contents of the specified directory. You recover this data after deletion. * You use this function to delete any repositories that do not appear in the cache of repositories (for example, repositories that contain invalid characters or exist within cPanel-controlled directories). Endpoint: GET /VersionControl/delete Version: 11.134.0.5 Security: BasicAuth ## Query parameters: - `repository_root` (string, required) The absolute directory path in the user's directory containing the repository to delete. Example: "/home/user/example" ## Response 200 fields (application/json): - `apiversion` (integer) The version of the API. Example: 3 - `func` (string) The name of the method called. Example: "delete" - `module` (string) The name of the module called. Example: "VersionControl" - `result` (object) - `result.data` (object,null) - `result.errors` (array,null) List of errors if the API failed. - `result.messages` (array,null) List of messages generated by the API. - `result.metadata` (object) - `result.status` (integer) * — Success. * — Failed. Check the field for more details. Enum: 1, 0 - `result.warnings` (array,null) List of warnings generated by the API. Warnings describe non-critical failures or other problematic conditions noted while running a API.