Deletion of items
There are reasons for deleting items.
- Implement a method to delete single items by id
- Implement a method to delete multiple items by query (e.g. project_id, import_id, ...)
Notes:
- Primarily this means removing M2M references (what about M2M_import?
- Keep the item if it's in another project/context (e.g. only delete the actual item if no M2M entries are left)
- Also delete associated information (e.g. annotations,...)
- Delete Item and (if exists) TwitterItem or ScholarlyItem or ...
See TODO
in src/nacsos_data/db/crud/items/__init__.py
.
Edited by Tim Repke