Policeman evicted the vagrant leaving hotel (9)
I believe the answer is:
detective
'policeman' is the definition.
(detective is a kind of policeman)
I don't understand how the rest of the clue works.
Can you help me to learn more?
(Other definitions for detective that I've seen before include "Investigating policeman" , "Private or police investigator" , "Policeman, say" , "Public or private investigator" , "police officer" .)