delete main and tags