src/MonitoringLivestatus.php
public function deleteAll() {
        $instances = $this->read();

        $ids = [];

        foreach ($instances as $instance) {
            $ids[] = $instance['id'];
        }

        if (count($ids) > 0) {
            $this->batchDelete($ids);
        }

        return $this;
    }
public function deleteAll() {
        $instances = $this->read();

        $ids = [];

        foreach ($instances as $instance) {
            $ids[] = $instance['id'];
        }

        if (count($ids) > 0) {
            $this->batchDelete($ids);
        }

        return $this;
    }
public function deleteAll ( ) { $ instances = $ this -> read ( ) ; $ ids = [ ] ; foreach ( $ instances as $ instance ) { $ ids [ ] = $ instance [ 'id' ] ; } if ( count ( $ ids ) > 0 ) { $ this -> batchDelete ( $ ids ) ; } return $ this ; }
Delete all monitoring instances

@return self Returns itself

@throws Exception on error
Delete all monitoring instances