This paper studies simplicity, primitivity and semiprimitivity of algebras
associated to \'etale groupoids. Applications to inverse semigroup algebras are
presented. The results also recover the semiprimitivity of Leavitt path
algebras and can be used to recover the known primitivity criterion for Leavitt
path algebras.Comment: Updated after referee report and corrected misprint