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:
uapi --output=jsonpretty \ --user=username \ VersionControl \ delete \ repository_root='/home/user/example'
{- "apiversion": 3,
- "func": "delete",
- "module": "VersionControl",
- "result": {
- "data": null,
- "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}