We call a directed acyclic graph a CIdigraph if a certain affine semigroup ring defined by it is a complete intersection. We show that if D is a 2-connected CI-digraph with cycle space of dimension at least 2, then it can be decomposed into two subdigraphs, one of which can be taken to have only one cycle, that are CI-digraphs and are glued together on a directed path. If the arcs of the digraph are the covering relations of a poset, this is the converse of a theorem of Boussicault, Feray, Lascoux and Reiner [2]. The decomposition result shows that CI-digraphs can be easily recognized. 1991 AMS Mathematics subject classification. 14M10, 05C25, 05C20. Keywords and phrases. complete intersection, cycle basis, directed graph.