DeleteEditionContainerFile
DeleteEditionContainerFile Remove an edition container
#include <Editions.h> Edition Manager
const FSSpec * editionFile ; contains the edition container's volume
reference number, directory ID, and
filename
returns Error Code; 0=no error
To remove the edition container, use the DeleteEditionContainerFile
function.
editionFile contains the volume reference number, directory ID, and
filename for the edition container being deleted.
Returns: an operating system Error Code.
noErr (0) No error
editionMgrInitErr (-450) Manager not initialized

Notes: If a user cancels a publisher section within a document or closes a
document containing a newly created publisher without saving, you need to
remove the edition container.
To locate the appropriate edition container to be deleted, use the
GetEditionInfo function. You use the UnRegisterSection function
(only after using the GetEditionInfo function) to unregister the
section record and alias record of the publisher being canceled.
If the user cancels a publisher, do not call the
DeleteEditionContainerFile function until the user saves the
document. This allows the user to undo changes and revert to the last saved
version of the document.
The DeleteEditionContainerFile function only deletes the edition
container if there is no registered publisher. You need to unregister a
publisher before you can delete its corresponding edition container.
You should use the DeleteEditionContainerFile function even if there
are subscribers to the edition. When a subscriber section tries to read in
data, it receives an error.