Improved Delete-ads function