def delete_rows(self, rows):
if rows is None:<EOL><INDENT>return<EOL><DEDENT>if isinstance(rows, slice):<EOL><INDENT>rows = self._process_slice(rows)<EOL>if rows.step is not None and rows.step != <NUM_LIT:1>:<EOL><INDENT>rows = numpy.arange(<EOL>rows.start+<NUM_LIT:1>,<EOL>rows.stop+<NUM_LIT:1>,<EOL>rows.step,<EOL>)<EOL><DEDENT>else:<EOL><INDENT>rows = slice(rows.start+<NUM_LIT:1>, rows.stop+<NUM_LIT:1>)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>rows = self._extract_rows(rows)<EOL>rows += <NUM_LIT:1><EOL><DEDENT>if isinstance(rows, slice):<EOL><INDENT>self._FITS.delete_row_range(self._ext+<NUM_LIT:1>, rows.start, rows.stop)<EOL><DEDENT>else:<EOL><INDENT>if rows.size == <NUM_LIT:0>:<EOL><INDENT>return<EOL><DEDENT>self._FITS.delete_rows(self._ext+<NUM_LIT:1>, rows)<EOL><DEDENT>self._update_info()<EOL>
Delete rows from the table

parameters
----------
rows: sequence or slice
    The exact rows to delete as a sequence, or a slice.

examples
--------
    # delete a range of rows
    with fitsio.FITS(fname,'rw') as fits:
        fits['mytable'].delete_rows(slice(3,20))

    # delete specific rows
    with fitsio.FITS(fname,'rw') as fits:
        rows2delete = [3,88,76]
        fits['mytable'].delete_rows(rows2delete)