def delete_workspaces(self):
        """Deletes all saved workspaces from this dataset."""

        # Targeted reload of workspaces for better concurrency safety.
        # @todo improve list field updates in general so this isn't necessary
        self._doc.reload("workspaces")

        for workspace_doc in self._doc.workspaces:
            if isinstance(workspace_doc, DBRef):
                continue

            # Detach child from workspace
            if workspace_doc.child is not None:
                workspace_doc.child._name = None
            workspace_doc.delete()

        self._doc.workspaces = []
        self.save()
Deletes all saved workspaces from this dataset.
fiftyone/core/dataset.py