Delete an entry from EmbeddedFiles. Notes: The argument must be name or index of an EmbeddedFiles item. Physical deletion of data will happen on save to a new file with appropriate garbage option. Args: item: name or number of item.
(self, item: typing.Union[int, str])
| 4464 | return len(self.embfile_names()) |
| 4465 | |
| 4466 | def embfile_del(self, item: typing.Union[int, str]): |
| 4467 | """Delete an entry from EmbeddedFiles. |
| 4468 | |
| 4469 | Notes: |
| 4470 | The argument must be name or index of an EmbeddedFiles item. |
| 4471 | Physical deletion of data will happen on save to a new |
| 4472 | file with appropriate garbage option. |
| 4473 | Args: |
| 4474 | item: name or number of item. |
| 4475 | Returns: |
| 4476 | None |
| 4477 | """ |
| 4478 | idx = self._embeddedFileIndex(item) |
| 4479 | return self._embfile_del(idx) |
| 4480 | |
| 4481 | def embfile_get(self, item: typing.Union[int, str]) -> bytes: |
| 4482 | """Get the content of an item in the EmbeddedFiles array. |