The aim of this paper is to realize a decomposition of the usual convexity structures on metric spaces. Thus, a metric space is totally convex if and only if it satisfies the conditions (A) and (B) (Proposition 2). Also, it is totally externally convex if and only if both conditions (A') and (B') are satisfied (Proposition 4). Some connections between the convexity conditions (A) and (A') and the Hausdorff-Pompeiu metric are investigated (see, for example, Corollary 3).