Is this a sentence you were given? Or is it one you wrote?
It's quite an awkward sentence. It looks as if "all" is serving as an indefinite pronoun.
http://grammar.ccc.commnet.edu/grammar/pronouns1.htm#indefinite
The word "all" in the given sentence is functioning as a determiner. Determiners are a type of part of speech that introduce or specify nouns. In this case, "all" is specifying the noun "erasers" by indicating that Kyle took every single eraser off Tom's pencils.