For a finite collection of graphs F, the F-M-Deletion problem consists in, given a graph G and an integer k, decide whether there exists S ⊆ V (G) with |S| ≤ k such that G \ S does not contain any of the graphs in F as a minor. We are interested in the parameterized complexity of F-M-Deletion when the parameter is the treewidth of G, denoted by tw. Our objective is to determine, for a fixed F, the smallest function f F such that F-M-Deletion can be solved in time f F (tw) · n O(1) on n-vertex graphs. We prove that f F (tw) = 2 2 O(tw·log tw) for every collection F, that f F (tw) = 2 O(tw·log tw) if all the graphs in F are connected and at least one of them is planar, and that f F (tw) = 2 O(tw) if in addition the input graph G is planar or embedded in a surface. When F contains a single connected planar graph H, we obtain a tight dichotomy about the asymptotic complexity of {H}-M-Deletion. Namely, we prove that f {H} (tw) = 2 Θ(tw) if H is a minor of the banner (that is, the graph consisting of a C 4 plus a pendent edge) that is different from P 5 , and that f {H} (tw) = 2 Θ(tw·log tw) otherwise. All the lower bounds hold under the ETH. We also consider the version of the problem where the graphs in F are forbidden as topological minors, and prove similar results, except that, in the algorithms, instead of requiring F to contain a planar graph, we need it to contain a subcubic planar graph. We also prove that, for this problem, f {K1,i} (tw) = 2 Θ(tw) for every i ≥ 1, while for the minor version it holds that f {K1,i} (tw) = 2 Θ(tw·log tw) for every i ≥ 4. Extended abstracts containing some of the results of this article appeared in the Proc. of the 12th International Symposium on Parameterized and Exact Computation (IPEC 2017) [3] and in the Proc. of the 13th International Symposium on Parameterized and Exact Computation (IPEC 2018) [4]. Work supported by French projects DEMOGRAPH (ANR-16-CE40-0028) and ESIGMA (ANR-17-CE23-0010).