Drop

The drop method completely removes a table from the database, including its definition. It also removes all dependent tables, recursively. DataJoint will first display the tables being dropped and the number of entities in each before prompting the user for confirmation to proceed.

The drop method is often used during initial design to allow altered table definitions to take effect.

% drop the Person table from the lab schema
drop(lab.Person)

Dropping part tables

A part table is usually removed as a consequence of calling drop on its master table.

Note

This rule is currently not enforced in MATLAB, but calling drop directly on a part table will produce an error in the future. See issue #125 on datajoint-matlab for more information.

Talk to the Community