no need to delete individual metadata elements when deleting a resource
@@ -2450,8 +2450,6 @@ class AbstractResource(ResourcePermissionsMixin, ResourceIRODSMixin):
for fl in self.files.all():
# COUCH: delete of file objects now cascades.
fl.delete(delete_logical_file=True)
- # TODO: Pabitra - delete_all_elements() may not be needed in Django 1.8 and later
- self.metadata.delete_all_elements()
self.metadata.delete()
hs_bagit.delete_files_and_bag(self)
super(AbstractResource, self).delete()
