This is no longer maintained and has been superseded by datajoint-company/datajoint-docs. Please file new issues there (or help contribute!). We are currently migrating and generating new content until December 2022 after which we’ll be decomissioning https://docs.datajoint.org and https://tutorials.datajoint.org in favor of https://datajoint.com/docs/.
del method deletes entities from a table and all dependent entries in dependent tables.
Delete is often used in conjunction with the restriction operator to define the subset of entities to delete. Delete is performed as an atomic transaction so that partial deletes never occur.
Delete the entire contents of the table
tuning.VonMises and all its dependents:
% delete all entries from tuning.VonMises del(tuning.VonMises) % delete entries from tuning.VonMises for mouse 1010 del(tuning.VonMises & 'mouse=1010') % delete entries from tuning.VonMises except mouse 1010 del(tuning.VonMises - 'mouse=1010')
Deleting from part tables¶
Entities in a part table are usually removed as a consequence of deleting the master table.
This rule is currently not enforced in MATLAB, but calling
del directly on a part table will produce an error in the future.
See issue #193 on
datajoint-matlab for more information.