# 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.

Warning:

* When you call this function, the system permanently deletes the entire contents
of the specified directory. You cannot recover this data after deletion.
* You cannot 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.136.0.25
Security: BasicAuth

## Query parameters:

  - `repository_root` (string, required)
    The absolute directory path in the user's home 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)
    * 1 — Success.
* 0 — Failed. Check the errors 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.


