sed - delete nth line inline from file

Let's suppose that we have the file 1.txt:

a is string
a is int
a is float64
a is bool
The following command:
sed -i -e '2d' 1.txt
deletes 2nd line from 1.txt, so it will become:
a is string
a is float64
a is bool