====== delete ====== .. py:method:: delete(self) **domain**: server **language**: python **class** :doc:`Item class ` Description =========== Deletes the active record and positions the cursor on the next record. The ``delete`` method * checks if item dataset is :doc:`active `, otherwise raises exception * checks if item dataset is not empty, otherwise raises exception * if item is a :doc:`detail ` , checks if the master item is in edit or insert :doc:`state `, otherwise raises exception. * if item is not a :doc:`detail ` , checks if it is in browse :doc:`state `, otherwise raises exception. * puts the item into delete :doc:`state ` * deletes the active record and positions the cursor on the next record * puts the item into browse :doc:`state ` See also ======== :doc:`Modifying datasets `