Hi!

I am trying to delete a specific document from a database called Users, but get the error "org.basex.core.BaseXException; No database opened"

The code is (input name is the document name):

        Context context = new Context();
        LocalSession session = new LocalSession(context);
        try {
            new Open("Users").execute(context);
            session.execute("delete " + name);
        } catch (Exception e) {
            e.printStackTrace(); // let the caller handle exception   
            throw e;
        }

Do I need to open the database through the session? Haven't found out how....

BR
Ketill Fenne