async def METHOD_NAME(
    hass: HomeAssistant,
    connection: websocket_api.ActiveConnection,
    msg: dict[str, Any],
):
    """Remove custom repositoriy."""
    hacs: HacsBase = hass.data.get(DOMAIN)
    repository = hacs.repositories.get_by_id(msg["repository"])
    repository.remove()
    await hacs.data.async_write()
    connection.send_message(websocket_api.result_message(msg["id"], {}))