relinted and merged delete into thread