How to delete a part of an archived forum .odt file

Not sure what you mean.

If you have the #plugin:data-explorer plugin installed, you can come up with a SQL query that will list all the posts that references your upload.