Fixed deleteall method