{
    "mode": "perldoc",
    "parameter": "MongoDB::DeleteResult",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/MongoDB%3A%3ADeleteResult/json",
    "generated": "2026-07-09T08:30:33Z",
    "synopsis": "my $result = $coll->deleteone( { id => $oid } );\nif ( $result->acknowledged ) {\n...\n}",
    "sections": {
        "NAME": {
            "content": "MongoDB::DeleteResult - MongoDB deletion result object\n",
            "subsections": []
        },
        "VERSION": {
            "content": "version v2.2.2\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "my $result = $coll->deleteone( { id => $oid } );\n\nif ( $result->acknowledged ) {\n...\n}\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This class encapsulates the results from a deletion operation.\n",
            "subsections": []
        },
        "ATTRIBUTES": {
            "content": "deletedcount\nThe number of documents that matched the filter.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "acknowledged\nIndicates whether this write result was acknowledged. Always true for this class.\n\nassert\nThrows an error if write errors or write concern errors occurred. Otherwise, returns the\ninvocant.\n\nassertnowriteerror\nThrows a MongoDB::WriteError if write errors occurred. Otherwise, returns the invocant.\n\nassertnowriteconcernerror\nThrows a MongoDB::WriteConcernError if write concern errors occurred. Otherwise, returns the\ninvocant.\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "*   David Golden <david@mongodb.com>\n\n*   Rassi <rassi@mongodb.com>\n\n*   Mike Friedman <friedo@friedo.com>\n\n*   Kristina Chodorow <k.chodorow@gmail.com>\n\n*   Florian Ragwitz <rafl@debian.org>\n",
            "subsections": []
        },
        "COPYRIGHT AND LICENSE": {
            "content": "This software is Copyright (c) 2020 by MongoDB, Inc.\n\nThis is free software, licensed under:\n\nThe Apache License, Version 2.0, January 2004\n",
            "subsections": []
        }
    },
    "summary": "MongoDB::DeleteResult - MongoDB deletion result object",
    "flags": [],
    "examples": [],
    "see_also": []
}