public function cleanup()
    {
        // Find all files older than the given gc age
        $fileIds = File::query()
            ->where('created_at', '<', Carbon::now()->subMinutes($this->getGarbageAgeInMinutes()))
            ->pluck('id');

        if ( ! count($fileIds)) {
            return 0;
        }

        $success = 0;

        foreach ($fileIds as $fileId) {
            $success += (int) $this->delete($fileId);
        }

        return $success;
    }