# How to delete rows in DataFrame?

**URL:** https://discourse.julialang.org/t/how-to-delete-rows-in-dataframe/86993
**Category:** New to Julia
**Tags:** question, dataframes
**Created:** [September 9, 2022, 2:55pm UTC](https://discourse.julialang.org/t/how-to-delete-rows-in-dataframe/86993 "2022-09-09T14:55:36Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![digital\_carver](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/digital_carver/32/33818_2.png) [@digital\_carver](https://discourse.julialang.org/u/digital_carver)
#### Post date: [September 9, 2022, 3:01pm UTC](https://discourse.julialang.org/t/how-to-delete-rows-in-dataframe/86993/2 "2022-09-09T15:01:39Z")

</div>

```julia
julia> deleteat!(df, findall(==(:C), df.group)[2])
7×2 DataFrame
 Row │ group X     
     │ Symbol Int64 
─────┼───────────────
   1 │ A 101
   2 │ A 102
   3 │ B 103
   4 │ B 104
   5 │ C 105
   6 │ C 107
   7 │ C 108

```

Assumes that there _is_ a second line that starts with C i.e. assumes there are at least two `C`s in the `group` column.

---

_[View the full topic](https://discourse.julialang.org/t/how-to-delete-rows-in-dataframe/86993)._
