A clampdown on street drinking and anti-social behaviour in Castleford resulted in six arrests at the weekend, including a 14-year-old boy.
Officers put a dispersal order on parts of the town for 48 hours which meant anyone told to leave the area for misbehaving would be arrested if they returned during that time.
It follows complaints about drinking and behaviour issues on the streets.
A total of 15 people were ordered to leave the area with four locked up for then returning.
So far, one person has been charged and other offences remain under investigation.
Two people were also arrested for criminal damage offences against four commercial premises, including the 14-year-old.
Inspector Martin Moizer of Wakefield Police said: “It is completely and utterly unacceptable that some residents have felt that parts of the town centre have at times, felt like a ‘no-go zone’ due to persistent street drinking and related anti-social behaviour.
“As a result we enacted a dispersal order.
“We are very pleased with the results of the operation which I think has sent a very clear message to those behaving in a way which is just not acceptable.
“Evidence suggests the operation made a significant impact on the town centre and we will follow up on the operation.”