=============
delete_record
=============

.. js:function:: delete_record() 

**domain**: client 

**language**: javascript

**class** :doc:`Item class </refs/client/item_api>`

Description
===========

* calls the 
  :doc:`can_delete <m_can_delete>`
  method to check whether a user have a right to delete a record, and if not,
  returns
  
* asks a user to confirm the operation

* calls the
  :doc:`delete <m_delete>`
  method to delete the record
  
* calls the
  :doc:`apply <m_apply>`
  method to write changes to the application database

See also
========

:doc:`Modifying datasets </programming/data/modifying_datasets>`

:doc:`delete <m_delete>`
