A convict has been flogged publicly by the primary court in Dehdadi district of northern Balkh province.