Working delete-ads function.