def clear(self):
        """Removes all frames from this sample."""
        self._replacements.clear()

        if not self._in_db:
            return

        self._delete_all = True
        self._delete_frames.clear()
Removes all frames from this sample.
fiftyone/core/frame.py