async def METHOD_NAME(
    name: str,
) -> Optional[dict[str, Any]]:
    """Delete a channel from the database."""
    query = f"""\
        SELECT {READ_PARAMS}
          FROM channels
         WHERE name = :name
    """
    params = {
        "name": name,
    }
    rec = await app.state.services.database.fetch_one(query, params)
    if rec is None:
        return None
    query = """\
        DELETE FROM channels
              WHERE name = :name
    """
    params = {
        "name": name,
    }
    await app.state.services.database.execute(query, params)
    return dict(rec)