A suspected “crack house” has been shut down by police.
Officers suspected the property was being used to supply drugs in Codnor.
A number of search warrants were carried out at the address, providing enough evidence for police to apply to have the flat closed.
Chesterfield magistrates granted a full closure order on the house in High Street to help reduce anti-social behaviour in the area.
The flat has been boarded up for three months and closure order notices put up to let the public know it was shut due to drugs being used or sold on the premises and serious nuisance being caused to the community.
Paul Robert Smith, 37, of High Street, was told to pay £500 legal costs, handed a 12-month community supervision order, a nine-month drugs treatment referral and ordered to pay a £60 victim surcharge after being convicted of possession of heroin.
He will face a separate charge of possession with intent to supply heroin in January.
Sgt Dave Harrison, of the Amber Valley Community Safety Partnership, said: “Residents said they were concerned about suspected illegal activities at this property and PC Anna Welberry worked with the council to take action on issues which were having a negative impact on the local community.
“The closure sends out a clear message that this type of behaviour won’t be tolerated and if you choose to behave in this way you risk losing your home as a consequence of your actions.”
Sgt Harrison added: “We hope residents will feel reassured that we are listening to their concerns and will take positive action against anyone involved in illegal or anti-social activity.”
Councillor Chris Short, Amber Valley Borough Council’s cabinet member for community safety, said: “We’re committed to working closely with the police to take a firm stance on crime and anti-social behaviour on behalf of local residents.
“Drug misuse and associated activities around this house has had a negative effect on the community and we’re pleased the court supported these orders.”
Insp Graham Lamin, who is in charge of policing in the Amber Valley, praised the community for working alongside police and the hard work of local officers.
He said: “This is a great result for the community and is a good example of what can be achieved by residents working alongside the police and council.
“It would have been difficult to achieve this result without the community’s help and I’d like to thank them for coming forward.
“I hope that other communities will be encouraged by this and recognise that they can make a difference to their local area by working with us.”