Question: all is preposition or not?
Answer: (following the pronoun object of a sentence): Pauline said goodbye to them all. (after a modal or auxiliary verb or the verb 'to be'): We can all relax. The tickets had all been sold. as an adverb (before an adjective, adverb, preposition, or conjunction): Bernard was all alone in a strange city.