systemPrune method

Future<SystemPruneReport> systemPrune({
  1. SystemPruneOptions options = const SystemPruneOptions(),
  2. Duration? timeout,
})

Prunes unused data from the local podman store.

Implementation

Future<SystemPruneReport> systemPrune({
  SystemPruneOptions options = const SystemPruneOptions(),
  Duration? timeout,
}) async {
  final response = await _send(
    method: HttpMethod.post,
    path: '/system/prune',
    queryParameters: options.toQueryParameters(),
    expectedStatusCodes: const <int>{200},
    timeout: timeout,
  );

  return SystemPruneReport.fromJson(
    _decodeObject(response.bodyText, '/system/prune'),
  );
}