The Berkeley Patriot, the tiny student outfit behind it, pulled the plug over the weekend, claiming the school had failed to communicate, made too many bureaucratic demands and endangered participants by refusing to rent out secure venues.

But the group never got around to actually inviting many of its advertised speakers, let alone confirming them.

The university, meanwhile, had gone nuts on security: Even Sunday’s public event to announce the cancellation was so “protected” that hundreds of people were still in line to enter the “safe space” when it started.

And it ended quickly, as provocateur Milo Yiannopoulos spoke for just a few minutes, then went on his way.

The big villains, of course, remain the mostly outside extremists who promise — and deliver — violent rioting, arson and other vandalism to prevent right-of-center types from speaking.

Which makes Berkeley’s security obsession quite understandable: The school has shelled out well over $1 million for such speeches this year, including for events that it still felt obliged to cancel. It cost an estimated $600,000 to secure the recent speech by utterly mainstream conservative Ben Shapiro.