public function deleteData() { set_time_limit(50000); // Get all Input send via AJAX to $rec $rec = Request::all(); // Inputs - Filters $type = $rec['type']; $nid = $rec['nid']; // Instantiate Neo4JConnector $neo = new Neo4JConnector('default', 'http', 'localhost', 7474, 'neo4j', 'aiscu'); // Start Batch Processing $neo->deleteData($type, $nid); return "Success"; }