#include <DbXml.hpp> void XmlManager::removeContainer(XmlTransaction &txn, const std::string &name);
The XmlManager::removeContainer
method
removes the underlying file for the container from the file system.
The container must be closed; the system throws an exception if the container is open.
The container must have been opened at least once; the system throws an exception if the underlying file has not yet been created.
If the operation is to be transaction-protected, the
txn
parameter is an
XmlTransaction
handle
returned from XmlManager::createTransaction.
The XmlManager::removeContainer
method may
fail and throw
XmlException
, encapsulating one of the following
non-zero errors:
An error occurred in an underlying Berkeley DB database. The XmlException::getDbErrno method will return the error code for the error.