Let $X$ be a scheme, let $\text{Div} (X)$ be its Weil divisors. For two Weil divisors $D,E$ we can easily define their gcd and lcm: $$\gcd(D,E)=\sum\min\{\text{ord}_F D,\text{ord}_F E\}F,\\ \text{lcm}(D,E)=\sum\max\{\text{ord}_F D,\text{ord}_F E\}F,$$ where the sums range over all prime divisors $F$ in $\text{Div}(X)$, and $\text{ord}_F D$ denotes the coefficient of $F$ of $D$.
I wonder if there already are some definitions for gcd and lcm for, say Cartier divisors (this might be easy), subschemes of distinct codimensions, or equivalent, their corresponding ideal sheaves.
A stupid observation is that, if $D,E$ are two small "disjoint" ample divisors, $A$ an ample divisor. If $A-D$ and $A-E$ are ample, then $A-\text{lcm}(D,E)$ remains ample. So I think of the corresponding sheaves $\mathscr{L}(A)\otimes \mathscr{L}(-\text{lcm}(D,E))$ remains ample, then $\mathscr{L}(-\text{lcm}(D,E))$ should be viewed as a sheaf lcm of $\mathscr{L}(-D)$ and $\mathscr{L}(-E)$. I wonder for arbitrary ideal sheaves, something similar is already been defined or what people should expect for such a definition.