def delete(
        self,
        entity_names: List[str] = None,
        relation_names: List[str] = None,
        properties: Dict = None,
        ids: List[str] = None,
    ) -> None:
        """
        Delete data matching the criteria.

        Args:
            entity_names (List[str] | None, optional): The entity names to delete. Defaults to None.
            relation_names (List[str] | None, optional): The relation names to delete. Defaults to None.
            properties (Dict | None, optional): The properties to remove. Defaults to None.
            ids (List[str] | None, optional): The ids to remove. Defaults to None.

        """
        if entity_names:
            self.structured_query(
                "MATCH (n) WHERE n.name IN $entity_names DETACH DELETE n",
                param_map={"entity_names": entity_names},
            )

        if ids:
            self.structured_query(
                "MATCH (n) WHERE n.id IN $ids DETACH DELETE n",
                param_map={"ids": ids},
            )

        if relation_names:
            for rel in relation_names:
                self.structured_query(f"MATCH ()-[r:`{rel}`]->() DELETE r")

        if properties:
            cypher = "MATCH (e) WHERE "
            prop_list = []
            params = {}
            for i, prop in enumerate(properties):
                prop_list.append(f"e.`{prop}` = $property_{i}")
                params[f"property_{i}"] = properties[prop]
            cypher += " AND ".join(prop_list)
            self.structured_query(cypher + " DETACH DELETE e", param_map=params)

        Delete data matching the criteria.

        Args:
            entity_names (List[str] | None, optional): The entity names to delete. Defaults to None.
            relation_names (List[str] | None, optional): The relation names to delete. Defaults to None.
            properties (Dict | None, optional): The properties to remove. Defaults to None.
            ids (List[str] | None, optional): The ids to remove. Defaults to None.

        
llama-index-integrations/graph_stores/llama-index-graph-stores-neptune/llama_index/graph_stores/neptune/base_property_graph.py